dawood HF staff commited on
Commit
1669389
·
verified ·
1 Parent(s): ecdb673

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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()