Redmind commited on
Commit
057e406
1 Parent(s): 737c7cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -113,7 +113,7 @@ def create_interface():
113
  gr.Markdown("### Audio Transcription and Sentiment Analysis")
114
 
115
  with gr.Row():
116
- audio_input = gr.Audio(sources=["upload"], type="file", label="Upload Audio File")
117
  model_choice = gr.Dropdown(
118
  choices=["Whisper OpenAI", "Deepgram API", "Assembly AI API"],
119
  label="Choose Transcription Model",
@@ -129,8 +129,8 @@ def create_interface():
129
 
130
  # When the button is clicked, call the `process_transcription_and_sentiment` function
131
  submit_button.click(process_transcription_and_sentiment,
132
- inputs=[audio_input, model_choice],
133
- outputs=[transcription_output, sentiment_output])
134
 
135
  demo.launch()
136
 
 
113
  gr.Markdown("### Audio Transcription and Sentiment Analysis")
114
 
115
  with gr.Row():
116
+ audio_input = gr.Audio(sources=["upload"], type="filepth", label="Upload Audio File")
117
  model_choice = gr.Dropdown(
118
  choices=["Whisper OpenAI", "Deepgram API", "Assembly AI API"],
119
  label="Choose Transcription Model",
 
129
 
130
  # When the button is clicked, call the `process_transcription_and_sentiment` function
131
  submit_button.click(process_transcription_and_sentiment,
132
+ audio_input, model_choice,
133
+ [transcription_output, sentiment_output)
134
 
135
  demo.launch()
136