AlienKevin commited on
Commit
cea00e9
1 Parent(s): e9e9b11

Update to work with latest gradio 4.19.0

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. app.py +4 -1
.gitignore CHANGED
@@ -1 +1,2 @@
1
  .DS_Store
 
 
1
  .DS_Store
2
+ __pycache__
app.py CHANGED
@@ -66,7 +66,10 @@ def classify_audio(audio):
66
 
67
  with gr.Blocks() as demo:
68
  with gr.Row():
69
- inputs = gr.Audio(source="microphone", type="numpy", label="Input Audio")
 
 
 
70
  submit_btn = gr.Button("Submit")
71
 
72
  with gr.Row():
 
66
 
67
  with gr.Blocks() as demo:
68
  with gr.Row():
69
+ gr.Label("Please say a Cantonese word with exactly 2 characters, like 你好, into the microphone and click submit to see model predictions.\nNote that the predictions are not very reliable currently.")
70
+
71
+ with gr.Row():
72
+ inputs = gr.Audio(sources=["microphone"], type="numpy", label="Input Audio")
73
  submit_btn = gr.Button("Submit")
74
 
75
  with gr.Row():