Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
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 |
-
|
133 |
-
|
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 |
|