iframe / app.py
slimshadow's picture
Create app.py
3d419cd verified
raw
history blame contribute delete
336 Bytes
import streamlit as st
# Set the title of the Streamlit app
st.title("Webpage Viewer")
# Create a text input for the URL
url = st.text_input("Enter the URL of the webpage you want to view:", "https://www.wikipedia.org")
# Display the URL in an iframe if it's not empty
if url:
st.components.v1.iframe(url, width=800, height=600)