Spaces:
Running
Running
fix: Add index url
Browse files- app.py +3 -3
- requirements.txt +2 -0
app.py
CHANGED
@@ -9,9 +9,9 @@ from huggingface_hub import login
|
|
9 |
|
10 |
login(os.getenv('HF_TOKEN'))
|
11 |
|
12 |
-
hub_folder = Path('~/.cache/huggingface/hub')
|
13 |
-
for path in hub_folder.walk():
|
14 |
-
|
15 |
|
16 |
from transformers import AutoModelForSequenceClassification
|
17 |
from transformers import AutoTokenizer
|
|
|
9 |
|
10 |
login(os.getenv('HF_TOKEN'))
|
11 |
|
12 |
+
# hub_folder = Path('~/.cache/huggingface/hub')
|
13 |
+
# for path in hub_folder.walk():
|
14 |
+
# st.write(path)
|
15 |
|
16 |
from transformers import AutoModelForSequenceClassification
|
17 |
from transformers import AutoTokenizer
|
requirements.txt
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
streamlit~=1.37.0
|
2 |
huggingface-hub~=0.24.5
|
3 |
torch==2.4.0+cpu
|
|
|
1 |
+
--find-links https://download.pytorch.org/whl/cpu
|
2 |
+
|
3 |
streamlit~=1.37.0
|
4 |
huggingface-hub~=0.24.5
|
5 |
torch==2.4.0+cpu
|