Haseeb230602 commited on
Commit
3f96502
·
verified ·
1 Parent(s): a8426e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,6 +17,7 @@ if audio_bytes:
17
  st.audio(audio_bytes, format="audio/wav")
18
  out_s=pipe_s(audio_bytes)
19
  st.text_area(label="Input sentence:", value=out_s)
 
20
  out_S=pipe(out_s)
21
  st.text_area(label="Output sentence:", value=out_S)
22
 
@@ -25,7 +26,6 @@ pipe_p=pipeline(model="ramsrigouthamg/t5_sentence_paraphraser")
25
  st.title("Paraphraser")
26
  import sentencepiece as spm
27
  sp=spm.SentencePieceProcessor(model_file='t5_sentence_paraphraser/spiece.model')
28
- st.title("Paraphraser")
29
  text_p=st.text_area('Input sentence:')
30
  if text_p:
31
  out_p=pipe_p(text_p)
 
17
  st.audio(audio_bytes, format="audio/wav")
18
  out_s=pipe_s(audio_bytes)
19
  st.text_area(label="Input sentence:", value=out_s)
20
+ out_s=str(out_s)
21
  out_S=pipe(out_s)
22
  st.text_area(label="Output sentence:", value=out_S)
23
 
 
26
  st.title("Paraphraser")
27
  import sentencepiece as spm
28
  sp=spm.SentencePieceProcessor(model_file='t5_sentence_paraphraser/spiece.model')
 
29
  text_p=st.text_area('Input sentence:')
30
  if text_p:
31
  out_p=pipe_p(text_p)