Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import requests as re
|
| 3 |
+
|
| 4 |
+
def convert(prompt):
|
| 5 |
+
gete = re.get(prompt)
|
| 6 |
+
resp = gete.text
|
| 7 |
+
return resp
|
| 8 |
+
|
| 9 |
+
st.title("Convert URL to HTML Code")
|
| 10 |
+
prompt = st.text_input("Enter URL")
|
| 11 |
+
|
| 12 |
+
if prompt:
|
| 13 |
+
resp = covnert(prompt)
|
| 14 |
+
st.code(resp)
|