Spaces:
Runtime error
Runtime error
update
Browse files- Demo_contractor/requirements.txt +23 -22
Demo_contractor/requirements.txt
CHANGED
|
@@ -1,23 +1,24 @@
|
|
| 1 |
-
torch
|
| 2 |
-
hf_hub_download
|
| 3 |
-
huggingface_hub
|
| 4 |
-
HF_TOKEN
|
| 5 |
-
gradio
|
| 6 |
-
os
|
| 7 |
-
repo_id
|
| 8 |
-
re
|
| 9 |
-
pickle
|
| 10 |
-
trasnform
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
| 23 |
)
|
|
|
|
| 1 |
+
torch
|
| 2 |
+
hf_hub_download
|
| 3 |
+
huggingface_hub
|
| 4 |
+
HF_TOKEN
|
| 5 |
+
gradio
|
| 6 |
+
os
|
| 7 |
+
repo_id
|
| 8 |
+
re
|
| 9 |
+
pickle
|
| 10 |
+
trasnform
|
| 11 |
+
trasnformers
|
| 12 |
+
pyngrok
|
| 13 |
+
modelo
|
| 14 |
+
modelo_path
|
| 15 |
+
# Instalaci贸n de dependencias
|
| 16 |
+
!pip install streamlit pandas torch huggingface_hub pyngrok
|
| 17 |
+
|
| 18 |
+
from huggingface_hub import hf_hub_download # Import hf_hub_download
|
| 19 |
+
|
| 20 |
+
modelo_path = hf_hub_download(
|
| 21 |
+
repo_id="ElDoctor/contractor",
|
| 22 |
+
filename="modelo.pkl",
|
| 23 |
+
token=os.environ["HF_TOKEN"]
|
| 24 |
)
|