ysharma HF Staff commited on
Commit
293bb38
·
1 Parent(s): 46e65ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -42,7 +42,11 @@ def main_note(audio):
42
 
43
  demo = gr.Interface(
44
  main_note,
45
- gr.Audio(source="microphone"),
 
 
 
 
46
  gr.Label(num_top_classes=4),
47
  #examples=[
48
  # [os.path.join(os.path.dirname(__file__),"audio/recording1.wav")],
 
42
 
43
  demo = gr.Interface(
44
  main_note,
45
+ #gr.Audio(source="microphone"),
46
+ gr.Audio(source="microphone",
47
+ type="filepath",
48
+ info="Use your microphone to record audio",
49
+ label="Use Microphone for Reference"),
50
  gr.Label(num_top_classes=4),
51
  #examples=[
52
  # [os.path.join(os.path.dirname(__file__),"audio/recording1.wav")],