acecalisto3 commited on
Commit
c1458fd
·
verified ·
1 Parent(s): 3dc80a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,9 +7,9 @@ from huggingface_hub import HfApi
7
 
8
 
9
  try:
10
- huggingface_json = st.secrets["huggingface"]
11
- huggingface_data = json.loads(huggingface_json)
12
- huggingface_token = huggingface_data["hf_token"]
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