Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,8 @@ from huggingface_hub import login
|
|
| 18 |
|
| 19 |
# Authenticate with Hugging Face Hub
|
| 20 |
import os
|
| 21 |
-
|
|
|
|
| 22 |
from huggingface_hub import login
|
| 23 |
login(token=HF_TOKEN)
|
| 24 |
pdf_path1 = huggingface_hub.hf_hub_download(repo_id="EdgarDataScientist/Diabetrek_AI", filename="Chrono 1.pdf")
|
|
|
|
| 18 |
|
| 19 |
# Authenticate with Hugging Face Hub
|
| 20 |
import os
|
| 21 |
+
|
| 22 |
+
HF_TOKEN = os.getenv('HF_TOKEN')
|
| 23 |
from huggingface_hub import login
|
| 24 |
login(token=HF_TOKEN)
|
| 25 |
pdf_path1 = huggingface_hub.hf_hub_download(repo_id="EdgarDataScientist/Diabetrek_AI", filename="Chrono 1.pdf")
|