Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,13 @@ def test_mic(audio):
|
|
11 |
return UnifiedAudio(value=audio)
|
12 |
|
13 |
with gr.Blocks() as demo:
|
|
|
14 |
mic = UnifiedAudio(sources="microphone")
|
15 |
mic.change(test_mic, mic, mic)
|
16 |
|
|
|
|
|
|
|
|
|
17 |
if __name__ == '__main__':
|
18 |
demo.launch()
|
|
|
11 |
return UnifiedAudio(value=audio)
|
12 |
|
13 |
with gr.Blocks() as demo:
|
14 |
+
# Example without Image
|
15 |
mic = UnifiedAudio(sources="microphone")
|
16 |
mic.change(test_mic, mic, mic)
|
17 |
|
18 |
+
# Example with Image
|
19 |
+
mic_image = UnifiedAudio(sources="microphone", image="./freeman.jpg")
|
20 |
+
mic_image.change(test_mic, mic_image, mic_image)
|
21 |
+
|
22 |
if __name__ == '__main__':
|
23 |
demo.launch()
|