Spaces:
Runtime error
Runtime error
Commit Β·
d2c8ea9
1
Parent(s): 9428738
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,11 @@ python_path = hf_hub_download(repo_id="PierreHanna/TextRetrieval", repo_type="sp
|
|
| 26 |
print(python_path)
|
| 27 |
os.system('ls -la')
|
| 28 |
#from models import *
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
def make_preprocess_model(sentence_features, tfhub_handle_preprocess, seq_length=128):
|
| 32 |
"""Returns Model mapping string features to BERT inputs.
|
|
|
|
| 26 |
print(python_path)
|
| 27 |
os.system('ls -la')
|
| 28 |
#from models import *
|
| 29 |
+
|
| 30 |
+
import site
|
| 31 |
+
site.addsitedir('./ph.spaces--PierreHanna--TextRetrieval.snapshots.ee43bbe093de2cd1b2fbda7c04d00ed4d360d730')
|
| 32 |
+
#from ph.spaces--PierreHanna--TextRetrieval.snapshots.ee43bbe093de2cd1b2fbda7c04d00ed4d360d730.models import *
|
| 33 |
+
from models import *
|
| 34 |
|
| 35 |
def make_preprocess_model(sentence_features, tfhub_handle_preprocess, seq_length=128):
|
| 36 |
"""Returns Model mapping string features to BERT inputs.
|