Commit
·
a960dc5
1
Parent(s):
36eed24
update app.py
Browse files
app.py
CHANGED
|
@@ -16,8 +16,8 @@ model_path = os.path.join('artifacts','model.pkl')
|
|
| 16 |
vocab_path = os.path.join('artifacts','vocab.pkl')
|
| 17 |
if IS_SPACE:
|
| 18 |
# In Hugging Face Spaces, use the model from the artifacts folder
|
| 19 |
-
model_path = os.path.join('
|
| 20 |
-
vocab_path = os.path.join('
|
| 21 |
|
| 22 |
# Load the vocabulary
|
| 23 |
with open(vocab_path, 'rb') as f:
|
|
|
|
| 16 |
vocab_path = os.path.join('artifacts','vocab.pkl')
|
| 17 |
if IS_SPACE:
|
| 18 |
# In Hugging Face Spaces, use the model from the artifacts folder
|
| 19 |
+
model_path = os.path.join('.', 'artifacts', 'model.pkl')
|
| 20 |
+
vocab_path = os.path.join('.', 'artifacts', 'vocab.pkl')
|
| 21 |
|
| 22 |
# Load the vocabulary
|
| 23 |
with open(vocab_path, 'rb') as f:
|