Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -187,6 +187,7 @@ def NER(sentence, mode):
|
|
| 187 |
json_short = distill_entities(output_list)
|
| 188 |
return json_short
|
| 189 |
|
|
|
|
| 190 |
|
| 191 |
# Paths expected by sinatools
|
| 192 |
RELATION_MODEL_DIR = os.path.join(BASE_DIR, "relation_model")
|
|
|
|
| 187 |
json_short = distill_entities(output_list)
|
| 188 |
return json_short
|
| 189 |
|
| 190 |
+
BASE_DIR = os.path.expanduser("~/.sinatools")
|
| 191 |
|
| 192 |
# Paths expected by sinatools
|
| 193 |
RELATION_MODEL_DIR = os.path.join(BASE_DIR, "relation_model")
|