Update app.py
Browse files
app.py
CHANGED
|
@@ -11,11 +11,11 @@ def test_mic(audio):
|
|
| 11 |
return UnifiedAudio(value=audio)
|
| 12 |
|
| 13 |
with gr.Blocks() as demo:
|
| 14 |
-
|
| 15 |
mic = UnifiedAudio(sources="microphone")
|
| 16 |
mic.change(test_mic, mic, mic)
|
| 17 |
|
| 18 |
-
|
| 19 |
mic_image = UnifiedAudio(sources="microphone", image="freeman.jpg")
|
| 20 |
mic_image.change(test_mic, mic_image, mic_image)
|
| 21 |
|
|
|
|
| 11 |
return UnifiedAudio(value=audio)
|
| 12 |
|
| 13 |
with gr.Blocks() as demo:
|
| 14 |
+
gr.Markdown("## Example without Image")
|
| 15 |
mic = UnifiedAudio(sources="microphone")
|
| 16 |
mic.change(test_mic, mic, mic)
|
| 17 |
|
| 18 |
+
gr.Markdown("## Example with Image")
|
| 19 |
mic_image = UnifiedAudio(sources="microphone", image="freeman.jpg")
|
| 20 |
mic_image.change(test_mic, mic_image, mic_image)
|
| 21 |
|