Spaces:
Runtime error
Runtime error
Commit Β·
c06eb2c
1
Parent(s): fccb33a
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
|
|
| 17 |
python_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", filename=os.environ['MODEL_FILE'],
|
| 18 |
use_auth_token=os.environ['TOKEN'])
|
| 19 |
print(python_path)
|
| 20 |
-
|
| 21 |
from models import *
|
| 22 |
preprocess_model, model = get_models()
|
| 23 |
url_dict = get_durl()
|
|
|
|
| 17 |
python_path = hf_hub_download(repo_id=os.environ['REPO_ID'], repo_type="space", filename=os.environ['MODEL_FILE'],
|
| 18 |
use_auth_token=os.environ['TOKEN'])
|
| 19 |
print(python_path)
|
| 20 |
+
sys.path.append(os.environ['PRIVATE_DIR'])
|
| 21 |
from models import *
|
| 22 |
preprocess_model, model = get_models()
|
| 23 |
url_dict = get_durl()
|