Ariamehr commited on
Commit
e80d53c
·
verified ·
1 Parent(s): 41af2be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -50,10 +50,12 @@ with gr.Blocks() as demo:
50
 
51
  with gr.Row():
52
  with gr.Column():
 
53
  audio_input = gr.Audio(
54
- source="microphone", type="filepath", label="Upload or Record Audio",
55
- elem_id="audio-upload"
56
  )
 
 
57
  model_dropdown = gr.Dropdown(
58
  choices=list(models.keys()),
59
  label="Select Model",
 
50
 
51
  with gr.Row():
52
  with gr.Column():
53
+ # Audio upload or record
54
  audio_input = gr.Audio(
55
+ type="filepath", label="Upload Audio File"
 
56
  )
57
+ record_button = gr.Microphone(source="microphone", label="Record Audio")
58
+
59
  model_dropdown = gr.Dropdown(
60
  choices=list(models.keys()),
61
  label="Select Model",