Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
286 |
|
287 |
# Create a button to open the link
|
288 |
if st.button('Open Survey Interview Link'):
|
289 |
-
|
290 |
-
|
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 |
+
|