frankai98 commited on
Commit
7bfc9bc
·
verified ·
1 Parent(s): 6c1e788

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -8,13 +8,13 @@ from streamlit.components.v1 import html
8
  import pandas as pd
9
 
10
  # Retrieve the token from environment variables
11
- hf_token = os.environ.get("HF_TOKEN")
12
- if not hf_token:
13
- st.error("Hugging Face token not found. Please set the HF_TOKEN environment variable.")
14
- st.stop()
15
 
16
  # Login with the token
17
- login(token=hf_token)
18
 
19
  # Initialize session state for timer and results
20
  if 'result' not in st.session_state:
 
8
  import pandas as pd
9
 
10
  # Retrieve the token from environment variables
11
+ #hf_token = os.environ.get("HF_TOKEN")
12
+ #if not hf_token:
13
+ #st.error("Hugging Face token not found. Please set the HF_TOKEN environment variable.")
14
+ #st.stop()
15
 
16
  # Login with the token
17
+ login(token=HF_TOKEN)
18
 
19
  # Initialize session state for timer and results
20
  if 'result' not in st.session_state: