Spaces:
Runtime error
Runtime error
VsCode commited on
Commit Β·
5707ab3
1
Parent(s): 3692f8e
solving conflit in login function for the second time
Browse files
app.py
CHANGED
|
@@ -10,6 +10,8 @@ from typing import Optional
|
|
| 10 |
|
| 11 |
# Login no Hugging Face
|
| 12 |
#login(new_session=False)
|
|
|
|
|
|
|
| 13 |
|
| 14 |
app = FastAPI(
|
| 15 |
title="CareLink Medical API",
|
|
|
|
| 10 |
|
| 11 |
# Login no Hugging Face
|
| 12 |
#login(new_session=False)
|
| 13 |
+
from huggingface_hub import HfFolder
|
| 14 |
+
HfFolder.save_token(os.environ["HF_TOKEN"])
|
| 15 |
|
| 16 |
app = FastAPI(
|
| 17 |
title="CareLink Medical API",
|