ankanghosh commited on
Commit
59fdc19
·
verified ·
1 Parent(s): 5ed5a29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -15
app.py CHANGED
@@ -225,24 +225,12 @@ st.caption("""
225
 
226
  st.warning("⏱️ **Note:** Processing times may vary from 10 seconds to 2 minutes depending on query complexity, available evidence, and current API response times.")
227
 
228
- # # Button for verifying claim
229
- # verify_button = st.button(
230
- # "Verify Claim",
231
- # type="primary",
232
- # disabled=st.session_state.processing,
233
- # key="verify_btn"
234
- # )
235
-
236
- # Check if running on HuggingFace
237
- is_huggingface = os.environ.get("SPACE_ID") is not None
238
-
239
- # Set button type based on environment
240
- button_type = "secondary" if is_huggingface else "primary" # This might give different colors
241
-
242
  # Button for verifying claim
 
 
243
  verify_button = st.button(
244
  "Verify Claim",
245
- type=button_type,
246
  disabled=st.session_state.processing,
247
  key="verify_btn"
248
  )
 
225
 
226
  st.warning("⏱️ **Note:** Processing times may vary from 10 seconds to 2 minutes depending on query complexity, available evidence, and current API response times.")
227
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  # Button for verifying claim
229
+ # Note: Button styling will differ between local environment and Hugging Face Spaces
230
+ # due to Hugging Face's theme overrides. This is expected behavior.
231
  verify_button = st.button(
232
  "Verify Claim",
233
+ type="primary",
234
  disabled=st.session_state.processing,
235
  key="verify_btn"
236
  )