Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def detect_ad(audio):
|
|
39 |
#
|
40 |
|
41 |
gr.Interface(detect_ad,
|
42 |
-
inputs = gr.inputs.Audio(source="microphone", type="
|
43 |
outputs = gr.outputs.Textbox(label="Output Text"),
|
44 |
title="AD Detection",
|
45 |
description = "Testing",
|
|
|
39 |
#
|
40 |
|
41 |
gr.Interface(detect_ad,
|
42 |
+
inputs = gr.inputs.Audio(source="microphone", type="file", optional=True, label="Please speak for 13-30 seconds"),
|
43 |
outputs = gr.outputs.Textbox(label="Output Text"),
|
44 |
title="AD Detection",
|
45 |
description = "Testing",
|