Spaces:
Runtime error
Runtime error
Commit
•
37d119f
1
Parent(s):
621a1f6
Realizing that dependencies are my issue :'(
Browse files- app.py +4 -0
- requirements.txt +4 -3
app.py
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
import logging
|
2 |
from pathlib import Path
|
3 |
from time import perf_counter
|
|
|
1 |
+
import subprocess
|
2 |
+
|
3 |
+
subprocess.run(["pip", "install", "--upgrade", "transformers[torch,sentencepiece]==4.34.1"])
|
4 |
+
|
5 |
import logging
|
6 |
from pathlib import Path
|
7 |
from time import perf_counter
|
requirements.txt
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
-
transformers==4.34.1
|
2 |
wikiextractor==3.0.6
|
3 |
-
|
4 |
qdrant-haystack==1.0.10
|
5 |
ipywidgets==8.1.1
|
6 |
tqdm==4.66.1
|
7 |
aiohttp==3.8.6
|
8 |
-
huggingface-hub==0.17.3
|
|
|
|
1 |
+
# transformers[torch,sentencepiece]==4.34.1
|
2 |
wikiextractor==3.0.6
|
3 |
+
sentence-transformers>2.2.0
|
4 |
qdrant-haystack==1.0.10
|
5 |
ipywidgets==8.1.1
|
6 |
tqdm==4.66.1
|
7 |
aiohttp==3.8.6
|
8 |
+
huggingface-hub==0.17.3
|
9 |
+
farm-haystack[inference]
|