Spaces:
Sleeping
Sleeping
Haseeb230602
commited on
Commit
•
da77ce5
1
Parent(s):
f3667d5
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
3 |
|
4 |
pipe=pipeline(model="vennify/t5-base-grammar-correction")
|
5 |
st.title("Grammatical Error Checker")
|
6 |
-
st.header("Text
|
7 |
text=st.text_area('Input sentence:', key=1)
|
8 |
if text:
|
9 |
out=pipe(text)
|
@@ -11,7 +11,7 @@ if text:
|
|
11 |
|
12 |
from audio_recorder_streamlit import audio_recorder
|
13 |
pipe_s=pipeline(model="openai/whisper-large-v3")
|
14 |
-
st.header("Speech
|
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")
|
|
|
3 |
|
4 |
pipe=pipeline(model="vennify/t5-base-grammar-correction")
|
5 |
st.title("Grammatical Error Checker")
|
6 |
+
st.header("Text Input:")
|
7 |
text=st.text_area('Input sentence:', key=1)
|
8 |
if text:
|
9 |
out=pipe(text)
|
|
|
11 |
|
12 |
from audio_recorder_streamlit import audio_recorder
|
13 |
pipe_s=pipeline(model="openai/whisper-large-v3")
|
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")
|