Spaces:
Runtime error
Runtime error
Download apps/paraphraseApp.py from shamim237/python-dev-task-skyranko: direct link, hf CLI and curl.
- Browser
- Download file 598 Bytes
-
https://huggingface.co/spaces/shamim237/python-dev-task-skyranko/resolve/main/apps/paraphraseApp.py
- Command line
-
hf download hf://spaces/shamim237/python-dev-task-skyranko/apps/paraphraseApp.py
-
curl -L -o paraphraseApp.py https://huggingface.co/spaces/shamim237/python-dev-task-skyranko/resolve/main/apps/paraphraseApp.py
598 Bytes
| 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!") | |