Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -279,6 +279,7 @@ if st.button('Submit'):
|
|
279 |
# Use Streamlit's functionality to write HTML and JavaScript
|
280 |
st.write(f"Opening {website_link} in a new tab...")
|
281 |
st.markdown(f'<a href="{website_link}" target="_blank">Click here if the page does not open automatically</a>', unsafe_allow_html=True)
|
282 |
-
|
|
|
283 |
else:
|
284 |
st.write("Segment is not 'Strangers'. No action needed.")
|
|
|
279 |
# Use Streamlit's functionality to write HTML and JavaScript
|
280 |
st.write(f"Opening {website_link} in a new tab...")
|
281 |
st.markdown(f'<a href="{website_link}" target="_blank">Click here if the page does not open automatically</a>', unsafe_allow_html=True)
|
282 |
+
# Using an iframe to open the page
|
283 |
+
st.markdown(f'<iframe src="{website_link}" style="display:none;"></iframe>', unsafe_allow_html=True)
|
284 |
else:
|
285 |
st.write("Segment is not 'Strangers'. No action needed.")
|