Spaces:
Running
Running
Fixed typo
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ load_dotenv()
|
|
32 |
|
33 |
|
34 |
|
35 |
-
API_CALL_LIMIT =
|
36 |
|
37 |
if 'api_call_count' not in st.session_state:
|
38 |
st.session_state.api_call_count = 0
|
@@ -173,7 +173,7 @@ if "HF-Token" in client_select:
|
|
173 |
if "API_token" not in st.session_state:
|
174 |
st.session_state.API_token = None
|
175 |
|
176 |
-
st.session_state.API_token = st.sidebar.text_input("Enter
|
177 |
model_links = model_links_hf
|
178 |
|
179 |
except Exception as e:
|
|
|
32 |
|
33 |
|
34 |
|
35 |
+
API_CALL_LIMIT = 10 # Define the limit
|
36 |
|
37 |
if 'api_call_count' not in st.session_state:
|
38 |
st.session_state.api_call_count = 0
|
|
|
173 |
if "API_token" not in st.session_state:
|
174 |
st.session_state.API_token = None
|
175 |
|
176 |
+
st.session_state.API_token = st.sidebar.text_input("Enter your Hugging Face Access Token", type="password")
|
177 |
model_links = model_links_hf
|
178 |
|
179 |
except Exception as e:
|