Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -2
src/streamlit_app.py
CHANGED
|
@@ -7,12 +7,16 @@ import uuid
|
|
| 7 |
from pathlib import Path
|
| 8 |
from huggingface_hub import CommitScheduler
|
| 9 |
import json
|
| 10 |
-
from huggingface_hub import login
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
#==
|
| 12 |
|
| 13 |
|
| 14 |
#===
|
| 15 |
-
login()
|
| 16 |
## Define the file where to save the data. Use UUID to make sure not to overwrite existing data from a previous run.
|
| 17 |
#feedback_file = Path("PedroC11/data_pref/") / f"data_{uuid.uuid4()}.json"
|
| 18 |
#feedback_folder = feedback_file.parent
|
|
|
|
| 7 |
from pathlib import Path
|
| 8 |
from huggingface_hub import CommitScheduler
|
| 9 |
import json
|
| 10 |
+
#from huggingface_hub import login
|
| 11 |
+
from huggingface_hub import whoami
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
user = whoami(token=os.environ.get("HF_TOKEN"))
|
| 15 |
#==
|
| 16 |
|
| 17 |
|
| 18 |
#===
|
| 19 |
+
#login()
|
| 20 |
## Define the file where to save the data. Use UUID to make sure not to overwrite existing data from a previous run.
|
| 21 |
#feedback_file = Path("PedroC11/data_pref/") / f"data_{uuid.uuid4()}.json"
|
| 22 |
#feedback_folder = feedback_file.parent
|