Spaces:
Sleeping
Sleeping
Download app.py from Kvikontent/url2html: direct link, hf CLI and curl.
- Browser
- Download file 298 Bytes
-
https://huggingface.co/spaces/Kvikontent/url2html/resolve/main/app.py
- Command line
-
hf download hf://spaces/Kvikontent/url2html/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Kvikontent/url2html/resolve/main/app.py
298 Bytes
| import streamlit as st | |
| import requests as re | |
| def convert(prompt): | |
| gete = re.get(prompt) | |
| resp = gete.text | |
| return resp | |
| st.title("Convert URL to HTML Code") | |
| prompt = st.text_input("Enter URL") | |
| if prompt: | |
| resp = convert(prompt) | |
| st.code(resp, language='html', line_numbers=True) |