spycoder commited on
Commit
0816085
·
1 Parent(s): 5914cfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -66,7 +66,10 @@ def predict(file_path):
66
  return predicted_class_id
67
  gr.Interface(
68
  fn=predict,
69
- inputs="file",
 
 
 
70
  outputs="text",
71
  title=title,
72
  description=description,
 
66
  return predicted_class_id
67
  gr.Interface(
68
  fn=predict,
69
+ inputs=[
70
+ gr.inputs.Audio(source="microphone", type="filepath", optional=True),
71
+ gr.inputs.Audio(source="upload", type="filepath", optional=True),
72
+ ],
73
  outputs="text",
74
  title=title,
75
  description=description,