File size: 598 Bytes
e674072
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import streamlit as st
from scrap import extract
from paraphraser import parphrase

def app():
    st.title('Paraphraser')
    st.write('Please provide a link or copy and paste this link in the cell below- https://www.amazon.com/dp/B09B9TB61G')
    user_input = st.text_input('Enter website link','')
    with st.spinner('Please wait...'):
        if st.button('Paraphrase'):
            data = extract(user_input)
            output = parphrase(data)   
            output = " ".join(output) 
            st.write("Paraphrased Text: ")
            st.write(output)
            st.success("Done!")