Alimubariz124 commited on
Commit
04db3bd
·
verified ·
1 Parent(s): 18d2713

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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 == "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.")
 
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.")