Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def classify_toxicity(audio_file, text_input, selected_model):
|
|
30 |
iface = gr.Interface(
|
31 |
fn=classify_toxicity,
|
32 |
inputs=[
|
33 |
-
gr.Audio(source="upload", type="
|
34 |
"text",
|
35 |
gr.Radio(available_models, type="value", label="Select Model")
|
36 |
],
|
|
|
30 |
iface = gr.Interface(
|
31 |
fn=classify_toxicity,
|
32 |
inputs=[
|
33 |
+
gr.Audio(source="upload", type="filepath", label="Upload Audio File (Optional)"),
|
34 |
"text",
|
35 |
gr.Radio(available_models, type="value", label="Select Model")
|
36 |
],
|