Spaces:
Paused
Paused
Create app.py
Browse files
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)
|