darienacosta commited on
Commit
a5f643f
1 Parent(s): 0a9c130

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -853,27 +853,27 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
853
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
854
 
855
  # UNCOMMENT TO USE WHISPER
856
- with gr.Row():
857
- audio_comp = gr.Microphone(source="microphone", type="filepath", label="Just say it!",
858
- interactive=True, streaming=False)
859
- audio_comp.change(transcribe, inputs=[audio_comp, whisper_lang_state], outputs=[message])
860
 
861
  # TEMPORARY FOR TESTING
862
  # with gr.Row():
863
  # audio_comp_tb = gr.Textbox(label="Just say it!", lines=1)
864
  # audio_comp_tb.submit(transcribe_dummy, inputs=[audio_comp_tb, whisper_lang_state], outputs=[message])
865
 
866
- gr.Examples(
867
- examples=["How many people live in Canada?",
868
- "What is 2 to the 30th power?",
869
- "If x+y=10 and x-y=4, what are x and y?",
870
- "How much did it rain in SF today?",
871
- "Get me information about the movie 'Avatar'",
872
- "What are the top tech headlines in the US?",
873
- "On the desk, you see two blue booklets, two purple booklets, and two yellow pairs of sunglasses - "
874
- "if I remove all the pairs of sunglasses from the desk, how many purple items remain on it?"],
875
- inputs=message
876
- )
877
 
878
 
879
 
 
853
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
854
 
855
  # UNCOMMENT TO USE WHISPER
856
+ #with gr.Row():
857
+ # audio_comp = gr.Microphone(source="microphone", type="filepath", label="Just say it!",
858
+ # interactive=True, streaming=False)
859
+ # audio_comp.change(transcribe, inputs=[audio_comp, whisper_lang_state], outputs=[message])
860
 
861
  # TEMPORARY FOR TESTING
862
  # with gr.Row():
863
  # audio_comp_tb = gr.Textbox(label="Just say it!", lines=1)
864
  # audio_comp_tb.submit(transcribe_dummy, inputs=[audio_comp_tb, whisper_lang_state], outputs=[message])
865
 
866
+ #gr.Examples(
867
+ # examples=["How many people live in Canada?",
868
+ # "What is 2 to the 30th power?",
869
+ # "If x+y=10 and x-y=4, what are x and y?",
870
+ # "How much did it rain in SF today?",
871
+ # "Get me information about the movie 'Avatar'",
872
+ # "What are the top tech headlines in the US?",
873
+ # "On the desk, you see two blue booklets, two purple booklets, and two yellow pairs of sunglasses - "
874
+ # "if I remove all the pairs of sunglasses from the desk, how many purple items remain on it?"],
875
+ # inputs=message
876
+ #)
877
 
878
 
879