DrishtiSharma commited on
Commit
378d519
1 Parent(s): f1e7215

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -41,10 +41,11 @@ gr.Interface(
41
  gr.inputs.Audio(source="microphone", type="filepath", label="Record your audio")
42
  ],
43
  #outputs=[gr.outputs.Label(num_top_classes=2),gr.outputs.Label(num_top_classes=2), gr.outputs.Label(num_top_classes=2)],
44
- outputs=[gr.outputs.Label(num_top_classes=2)],
 
45
  examples=[["audio1.wav"], ["audio2.wav"], ["sample_audio.wav"]],
46
  title="Spanish-Audio-Transcription-based-Harassment-Detection",
47
- description=description
48
  layout="horizontal",
49
  theme="huggingface",
50
  ).launch(enable_queue=True, cache_examples=True)
 
41
  gr.inputs.Audio(source="microphone", type="filepath", label="Record your audio")
42
  ],
43
  #outputs=[gr.outputs.Label(num_top_classes=2),gr.outputs.Label(num_top_classes=2), gr.outputs.Label(num_top_classes=2)],
44
+ inputs=[gr.inputs.Textbox(
45
+ lines=5)],
46
  examples=[["audio1.wav"], ["audio2.wav"], ["sample_audio.wav"]],
47
  title="Spanish-Audio-Transcription-based-Harassment-Detection",
48
+ description=description,
49
  layout="horizontal",
50
  theme="huggingface",
51
  ).launch(enable_queue=True, cache_examples=True)