aldan.creo commited on
Commit
a85fcba
1 Parent(s): 21eb51f
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +16 -2
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: GrAImmarian
3
  emoji: 🗣️
4
  colorFrom: purple
5
  colorTo: blue
 
1
  ---
2
+ title: GrammASRian
3
  emoji: 🗣️
4
  colorFrom: purple
5
  colorTo: blue
app.py CHANGED
@@ -47,6 +47,7 @@ def transcribe_live(state, words_list, new_chunk):
47
 
48
  try:
49
  new_transcription = transcriber({"sampling_rate": sr, "raw": stream})
 
50
  except Exception as e:
51
  gr.Error(f"Transcription failed. Error: {e}")
52
  print(f"Transcription failed. Error: {e}")
@@ -105,7 +106,20 @@ with gr.Blocks() as demo:
105
  "counts_of_words": {},
106
  }
107
  )
108
- filler_words = gr.Textbox(label="List of filer words", value="like, so, you know")
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  recording = gr.Audio(streaming=True, label="Recording")
110
 
111
  word_counts = gr.JSON(label="Filler words count", value={})
@@ -129,4 +143,4 @@ with gr.Blocks() as demo:
129
  time_limit=-1,
130
  )
131
 
132
- demo.launch(show_error=True)
 
47
 
48
  try:
49
  new_transcription = transcriber({"sampling_rate": sr, "raw": stream})
50
+ print(f"new transcription: {new_transcription}")
51
  except Exception as e:
52
  gr.Error(f"Transcription failed. Error: {e}")
53
  print(f"Transcription failed. Error: {e}")
 
106
  "counts_of_words": {},
107
  }
108
  )
109
+
110
+ gr.Markdown(
111
+ """
112
+ # GrammASRian
113
+
114
+ This app transcribes your speech in real-time and counts the number of filler words you use.
115
+
116
+ The intended use case is to help you become more aware of the filler words you use, so you can reduce them and improve your speech.
117
+
118
+ It uses the OpenAI Whisper model for transcription on a streaming configuration.
119
+ """
120
+ )
121
+
122
+ filler_words = gr.Textbox(label="List of filer words", value="like, so, you know", info="Enter a comma-separated list of words to check for")
123
  recording = gr.Audio(streaming=True, label="Recording")
124
 
125
  word_counts = gr.JSON(label="Filler words count", value={})
 
143
  time_limit=-1,
144
  )
145
 
146
+ demo.launch()