Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|