abdou1634 commited on
Commit
f01eda2
·
verified ·
1 Parent(s): 712eaa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -2,6 +2,10 @@ import gradio as gr
2
 
3
  with gr.Blocks() as demo:
4
  gr.Image("lion.jpg")
5
- gr.Audio("cantina.wav")
 
 
 
 
6
 
7
  demo.launch()
 
2
 
3
  with gr.Blocks() as demo:
4
  gr.Image("lion.jpg")
5
+ gr.Audio("cagr.Audio(type="filepath", label="...", interactive=True) # pour upload + record
6
+ # ou si tu veux uniquement le micro :
7
+ gr.Audio(sources=["microphone"], type="filepath", label="...")
8
+ # ou si tu veux upload + micro (le plus courant) :
9
+ gr.Audio(sources=["upload, "microphone"], type="filepath", label="...")ntina.wav")
10
 
11
  demo.launch()