Haseeb230602 commited on
Commit
0d5883f
·
verified ·
1 Parent(s): ccbfa72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,12 +4,14 @@ from audio_recorder_streamlit import audio_recorder
4
 
5
  pipe=pipeline(model="vennify/t5-base-grammar-correction")
6
  st.title("Grammatical Error Checker")
 
7
  text=st.text_area('Enter some text:')
8
 
9
  if text:
10
  out=pipe(text)
11
- st.json(out)
12
 
 
13
  audio_bytes = audio_recorder(pause_threshold=2.0, sample_rate=41_000, recording_color="#e8b62c", neutral_color="#6aa36f", icon_name="user", icon_size="6x")
14
  if audio_bytes:
15
  st.audio(audio_bytes, format="audio/wav")
 
4
 
5
  pipe=pipeline(model="vennify/t5-base-grammar-correction")
6
  st.title("Grammatical Error Checker")
7
+ st.header("Text input:")
8
  text=st.text_area('Enter some text:')
9
 
10
  if text:
11
  out=pipe(text)
12
+ st.text_area(out)
13
 
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")