url_shortner / app.py
Shivraj8615's picture
Update app.py
262e898
raw
history blame
369 Bytes
import pyshorteners
import streamlit as st
path = "url_img.png"
st.image(path)
heading = st.write("# URL Shortner")
st.header(heading)
input_url = st.text_input("")
if st.button('Submit'):
link = input_url
shorteners = pyshorteners.Shortener()
shortlink = shorteners.tinyurl.short(link)
st.write(shortlink)
else:
st.write("Write a proper link")