JLW commited on
Commit
5bfd007
·
1 Parent(s): 0751bd0

Temporarily remove Whisper

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +6 -6
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: GPT+WolframAlpha+Whisper
3
  emoji: 👀
4
  colorFrom: red
5
  colorTo: gray
 
1
  ---
2
+ title: GPT+WolframAlpha
3
  emoji: 👀
4
  colorFrom: red
5
  colorTo: gray
app.py CHANGED
@@ -468,11 +468,11 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
468
  lines=1)
469
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
470
 
471
- # UNCOMMENT TO-USE WHISPER
472
- # with gr.Row():
473
- # audio_comp = gr.Microphone(source="microphone", type="filepath", label="Just say it!",
474
- # interactive=True, streaming=False)
475
- # audio_comp.change(transcribe, inputs=[audio_comp], outputs=[message])
476
 
477
  gr.Examples(
478
  examples=["How many people live in Canada?",
@@ -480,7 +480,7 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
480
  "If x+y=10 and x-y=4, what are x and y?",
481
  "How much did it rain in SF today?",
482
  "Get me information about the movie 'Avatar'",
483
- "What are the top tech headlines in the UK?",
484
  "On the desk, you see two blue booklets, two purple booklets, and two yellow pairs of sunglasses - "
485
  "if I remove all the pairs of sunglasses from the desk, how many purple items remain on it?"],
486
  inputs=message
 
468
  lines=1)
469
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
470
 
471
+ # UNCOMMENT TO USE WHISPER
472
+ with gr.Row():
473
+ audio_comp = gr.Microphone(source="microphone", type="filepath", label="Just say it!",
474
+ interactive=True, streaming=False)
475
+ audio_comp.change(transcribe, inputs=[audio_comp, whisper_lang_state], outputs=[message])
476
 
477
  gr.Examples(
478
  examples=["How many people live in Canada?",
 
480
  "If x+y=10 and x-y=4, what are x and y?",
481
  "How much did it rain in SF today?",
482
  "Get me information about the movie 'Avatar'",
483
+ "What are the top tech headlines in the US?",
484
  "On the desk, you see two blue booklets, two purple booklets, and two yellow pairs of sunglasses - "
485
  "if I remove all the pairs of sunglasses from the desk, how many purple items remain on it?"],
486
  inputs=message