Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -275,12 +275,12 @@ if st.button('Submit'):
|
|
275 |
#predicted_label = "strangers"
|
276 |
|
277 |
# Check if the segment is "strangers"
|
278 |
-
if predicted_label == "
|
279 |
-
|
280 |
-
|
281 |
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
else:
|
286 |
-
|
|
|
275 |
#predicted_label = "strangers"
|
276 |
|
277 |
# Check if the segment is "strangers"
|
278 |
+
if predicted_label == "Strangers":
|
279 |
+
# Provide the website link
|
280 |
+
website_link = "https://www.bing.com/chat?form=NTPCHB"
|
281 |
|
282 |
+
# Automatically open the link in a new tab
|
283 |
+
st.write(f"Opening {website_link} in a new tab...")
|
284 |
+
st.markdown(f'<script>window.open("{website_link}", "_blank");</script>', unsafe_allow_html=True)
|
285 |
+
else:
|
286 |
+
st.write("Segment is not 'strangers'. No action needed.")
|