Alimubariz124 commited on
Commit
9f84f69
·
verified ·
1 Parent(s): c8154ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -276,19 +276,19 @@ if st.button('Submit'):
276
 
277
 
278
 
279
-
280
- if predicted_label == "Strangers":
281
  # Congratulatory message for survey interview
282
  st.write("Congratulations, you are selected for the survey interview!")
283
 
284
  # Provide the website link
285
- website_link = "https://www.google.com"
286
 
287
  # Create a button to open the link
288
  if st.button('Open Survey Interview Link'):
289
- streamlit_js_eval(js_code=f'window.open("{website_link}", "_blank");')
290
- st.markdown(f'<a href="{website_link}" target="_blank">Click here if the page does not open automatically</a>', unsafe_allow_html=True)
291
  else:
292
  # Thank you message for participants not selected
293
  st.write("Thank you for your participation. Unfortunately, you were not selected for the survey interview at this time.")
294
 
 
 
276
 
277
 
278
 
279
+ if predicted_label == "Strangers":
 
280
  # Congratulatory message for survey interview
281
  st.write("Congratulations, you are selected for the survey interview!")
282
 
283
  # Provide the website link
284
+ website_link = "https://www.bing.com"
285
 
286
  # Create a button to open the link
287
  if st.button('Open Survey Interview Link'):
288
+ st.markdown(f'<meta http-equiv="refresh" content="0; url={website_link}">', unsafe_allow_html=True)
289
+ st.markdown(f'<a href="{website_link}" target="_blank">Click here if the page does not open automatically</a>', unsafe_allow_html=True)
290
  else:
291
  # Thank you message for participants not selected
292
  st.write("Thank you for your participation. Unfortunately, you were not selected for the survey interview at this time.")
293
 
294
+