mskov commited on
Commit
f69c19e
·
1 Parent(s): c8e54ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="file", label="Upload Audio File (Optional)"),
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
  ],