Spaces:
Runtime error
Runtime error
Commit Β·
f1bdeb9
1
Parent(s): c82874f
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,9 +13,6 @@ import joblib
|
|
| 13 |
|
| 14 |
from huggingface_hub import hf_hub_download
|
| 15 |
|
| 16 |
-
#encoder_text_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", filename=os.environ['ENCODER_TEXT'],
|
| 17 |
-
# use_auth_token=os.environ['TOKEN'])
|
| 18 |
-
#print("DEBUG ", encoder_text_path)
|
| 19 |
# NO GPU
|
| 20 |
os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
|
| 21 |
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
|
|
@@ -24,7 +21,6 @@ os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
|
|
| 24 |
python_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", filename=os.environ['MODEL_FILE'],
|
| 25 |
use_auth_token=os.environ['TOKEN'])
|
| 26 |
print(python_path)
|
| 27 |
-
#os.system('ls -la')
|
| 28 |
|
| 29 |
sys.path.append(os.environ['PRIVATE_DIR'])
|
| 30 |
from models import *
|
|
|
|
| 13 |
|
| 14 |
from huggingface_hub import hf_hub_download
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
# NO GPU
|
| 17 |
os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
|
| 18 |
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
|
|
|
|
| 21 |
python_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", filename=os.environ['MODEL_FILE'],
|
| 22 |
use_auth_token=os.environ['TOKEN'])
|
| 23 |
print(python_path)
|
|
|
|
| 24 |
|
| 25 |
sys.path.append(os.environ['PRIVATE_DIR'])
|
| 26 |
from models import *
|