Haseeb230602 commited on
Commit
f3667d5
·
verified ·
1 Parent(s): b52d791

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -35,9 +35,7 @@ if text_l:
35
 
36
  pipe_p=pipeline(model="ramsrigouthamg/t5_sentence_paraphraser")
37
  st.title("Paraphraser")
38
- import sentencepiece as spm
39
- sp=spm.SentencePieceProcessor(model_file="D:\llm\t5_sentence_paraphraser\spiece.model")
40
- text_p=st.text_area('Input sentence:')
41
  if text_p:
42
  out_p=pipe_p(text_p)
43
  st.text_area(label="Output sentence:", value=out_p)
 
35
 
36
  pipe_p=pipeline(model="ramsrigouthamg/t5_sentence_paraphraser")
37
  st.title("Paraphraser")
38
+ text_p=st.text_area('Input sentence:', key=3)
 
 
39
  if text_p:
40
  out_p=pipe_p(text_p)
41
  st.text_area(label="Output sentence:", value=out_p)