AbdelrahmanGalhom commited on
Commit
a960dc5
·
1 Parent(s): 36eed24

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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('/app', 'artifacts', 'model.pkl')
20
- vocab_path = os.path.join('/app', 'artifacts', 'vocab.pkl')
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: