Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,9 @@ from huggingface_hub import HfApi
|
|
7 |
|
8 |
|
9 |
try:
|
10 |
-
huggingface_json = st.secrets["
|
11 |
-
huggingface_data = json.loads(huggingface_json)
|
12 |
-
huggingface_token = huggingface_data["
|
13 |
except Exception as e:
|
14 |
st.error(f"Unable to load secrets: {str(e)}")
|
15 |
raise
|
|
|
7 |
|
8 |
|
9 |
try:
|
10 |
+
huggingface_json = st.secrets["hf_token"]
|
11 |
+
huggingface_data = json.loads("huggingface_json")
|
12 |
+
huggingface_token = huggingface_data["huggingface_json"]
|
13 |
except Exception as e:
|
14 |
st.error(f"Unable to load secrets: {str(e)}")
|
15 |
raise
|