DmitryRyumin commited on
Commit
efc049f
Β·
verified Β·
1 Parent(s): e9c8cf5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -158,7 +158,7 @@ def process_audio(audio_path):
158
  create_plot(empty, "🎧 Audio Analysis"),
159
  "No audio detected",
160
  create_plot(empty, "πŸ“ Text Analysis"),
161
- create_plot(empty, "🀝 Combined Analysis"),
162
  "πŸ”‡ Please provide audio input"
163
  )
164
 
@@ -182,7 +182,7 @@ def process_audio(audio_path):
182
  create_plot(audio_df, "🎧 Audio Analysis"),
183
  f"πŸ—£οΈ Transcription:\n{text}",
184
  create_plot(text_df, "πŸ“ Text Analysis"),
185
- create_plot(combined_df, "🀝 Combined Analysis"),
186
  f"## πŸ† Dominant Emotion: {top_emotion}"
187
  )
188
 
@@ -193,7 +193,7 @@ def process_audio(audio_path):
193
  create_plot(error_df, "🎧 Audio Analysis"),
194
  "❌ Error processing audio",
195
  create_plot(error_df, "πŸ“ Text Analysis"),
196
- create_plot(error_df, "🀝 Combined Analysis"),
197
  "⚠️ Processing Error"
198
  )
199
 
@@ -202,7 +202,7 @@ def create_app():
202
  """Build enhanced Gradio interface."""
203
  with gr.Blocks(theme=gr.themes.Soft(), title="Emotion Detection from Speech") as demo:
204
  gr.Markdown("# Intelligent system for Bilingual Bimodal Emotion Recognition (BiBiER)")
205
- gr.Markdown("Analyze emotions in speech through both audio characteristics and spoken content")
206
 
207
  with gr.Row():
208
  audio_input = gr.Audio(
@@ -214,7 +214,7 @@ def create_app():
214
  )
215
 
216
  with gr.Row():
217
- top_emotion = gr.Markdown("## πŸ† Dominant Emotion: Waiting for input...",
218
  elem_classes="dominant-emotion")
219
 
220
  with gr.Row():
@@ -223,7 +223,7 @@ def create_app():
223
  with gr.Column():
224
  text_plot = gr.Plot(label="Text Analysis")
225
  with gr.Column():
226
- combined_plot = gr.Plot(label="Combined Analysis")
227
 
228
  transcription = gr.Textbox(
229
  label="πŸ“œ Transcription Results",
 
158
  create_plot(empty, "🎧 Audio Analysis"),
159
  "No audio detected",
160
  create_plot(empty, "πŸ“ Text Analysis"),
161
+ create_plot(empty, "🀝 Audio-Text Analysis"),
162
  "πŸ”‡ Please provide audio input"
163
  )
164
 
 
182
  create_plot(audio_df, "🎧 Audio Analysis"),
183
  f"πŸ—£οΈ Transcription:\n{text}",
184
  create_plot(text_df, "πŸ“ Text Analysis"),
185
+ create_plot(combined_df, "🀝 Audio-Text Analysis"),
186
  f"## πŸ† Dominant Emotion: {top_emotion}"
187
  )
188
 
 
193
  create_plot(error_df, "🎧 Audio Analysis"),
194
  "❌ Error processing audio",
195
  create_plot(error_df, "πŸ“ Text Analysis"),
196
+ create_plot(error_df, "🀝 Audio-Text Analysis"),
197
  "⚠️ Processing Error"
198
  )
199
 
 
202
  """Build enhanced Gradio interface."""
203
  with gr.Blocks(theme=gr.themes.Soft(), title="Emotion Detection from Speech") as demo:
204
  gr.Markdown("# Intelligent system for Bilingual Bimodal Emotion Recognition (BiBiER)")
205
+ gr.Markdown("Analyze emotions in Russian and English speech through both audio characteristics and spoken content")
206
 
207
  with gr.Row():
208
  audio_input = gr.Audio(
 
214
  )
215
 
216
  with gr.Row():
217
+ top_emotion = gr.Markdown("## πŸ† Dominant Emotion: Waiting for input ...",
218
  elem_classes="dominant-emotion")
219
 
220
  with gr.Row():
 
223
  with gr.Column():
224
  text_plot = gr.Plot(label="Text Analysis")
225
  with gr.Column():
226
+ combined_plot = gr.Plot(label="Audio-Text Analysis")
227
 
228
  transcription = gr.Textbox(
229
  label="πŸ“œ Transcription Results",