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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,11 +5,11 @@ from audio_recorder_streamlit import audio_recorder
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(label="Output data:", value=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")
 
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('Input sentence:')
9
 
10
  if text:
11
  out=pipe(text)
12
+ st.text_area(label="Output sentence:", value=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")