Haseeb230602 commited on
Commit
f8a232c
·
verified ·
1 Parent(s): 6f49668

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -14,4 +14,12 @@ if text:
14
  st.header("Speech input:")
15
  audio_bytes = audio_recorder(pause_threshold=2.0, sample_rate=41_000, recording_color="#e8b62c", neutral_color="#6aa36f", icon_name="user", icon_size="6x")
16
  if audio_bytes:
17
- st.audio(audio_bytes, format="audio/wav")
 
 
 
 
 
 
 
 
 
14
  st.header("Speech input:")
15
  audio_bytes = audio_recorder(pause_threshold=2.0, sample_rate=41_000, recording_color="#e8b62c", neutral_color="#6aa36f", icon_name="user", icon_size="6x")
16
  if audio_bytes:
17
+ st.audio(audio_bytes, format="audio/wav")
18
+
19
+ pipe_p=pipeline(model="ramsrigouthamg/t5_sentence_paraphraser")
20
+ st.title("Paraphraser")
21
+ text_p=st.text_area('Input sentence:')
22
+
23
+ if text_p:
24
+ out_p=pipe_p(text_p)
25
+ st.text_area(label="Output sentence:", value=out_p)