slimshadow commited on
Commit
3d419cd
·
verified ·
1 Parent(s): 69296fe

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ # Set the title of the Streamlit app
4
+ st.title("Webpage Viewer")
5
+
6
+ # Create a text input for the URL
7
+ url = st.text_input("Enter the URL of the webpage you want to view:", "https://www.wikipedia.org")
8
+
9
+ # Display the URL in an iframe if it's not empty
10
+ if url:
11
+ st.components.v1.iframe(url, width=800, height=600)