ankanghosh commited on
Commit
a92b9bb
·
verified ·
1 Parent(s): c8b2e3d

Update app,py

Browse files
Files changed (1) hide show
  1. app.py +15 -12
app.py CHANGED
@@ -50,17 +50,6 @@ st.set_page_config(
50
  layout="wide",
51
  )
52
 
53
- # Set the "Verify Claim" button color
54
- st.markdown("""
55
- <style>
56
- /* Set verify button to blue/purple color */
57
- .stButton>button[data-testid="verify_btn"] {
58
- background-color: #6c63ff !important; /* Purple-blue color */
59
- color: white !important;
60
- }
61
- </style>
62
- """, unsafe_allow_html=True)
63
-
64
  # Hide the "Press ⌘+Enter to apply" text with CSS
65
  st.markdown("""
66
  <style>
@@ -236,10 +225,24 @@ st.caption("""
236
 
237
  st.warning("⏱️ **Note:** Processing times may vary from 10 seconds to 2 minutes depending on query complexity, available evidence, and current API response times.")
238
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  # Button for verifying claim
240
  verify_button = st.button(
241
  "Verify Claim",
242
- type="primary",
243
  disabled=st.session_state.processing,
244
  key="verify_btn"
245
  )
 
50
  layout="wide",
51
  )
52
 
 
 
 
 
 
 
 
 
 
 
 
53
  # Hide the "Press ⌘+Enter to apply" text with CSS
54
  st.markdown("""
55
  <style>
 
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
  )