Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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('
|
9 |
|
10 |
if text:
|
11 |
out=pipe(text)
|
12 |
-
st.text_area(label="Output
|
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")
|