Spaces:
Runtime error
Runtime error
File size: 619 Bytes
8749106 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import streamlit as st
from paraphraser import get_paraphrased_sentences, model, tokenizer
def app():
st.title('Paraphraser')
st.write('Please provide the text to be paraphrased')
user_input = st.text_area('Enter text','')
paraphraseNo = st.slider('Number of Parapharases',1,2,10)
if st.button('Paraphrase'):
output = get_paraphrased_sentences(model, tokenizer, user_input, num_beams=10, num_return_sequences=paraphraseNo)
st.write("Paraphrased Text: ")
st.write(output)
##get_paraphrased_sentences(model, tokenizer, sentence, num_beams=10, num_return_sequences=10) |