Spaces:
jfforero
/
Runtime error

jfforero commited on
Commit
1ddb061
·
verified ·
1 Parent(s): 9bf9e11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -2,7 +2,6 @@ import gradio as gr
2
  import numpy as np
3
  import librosa
4
  import time
5
- from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
6
  from tensorflow.keras.models import load_model
7
 
8
  # Load the emotion prediction model
@@ -41,7 +40,7 @@ with gr.Blocks() as interface:
41
  with gr.Row():
42
  input_audio = gr.Audio(label="Input Audio", type="filepath")
43
  submit_button = gr.Button("Submit")
44
- output_labels = [gr.Label(num_top_classes=8), gr.Label(num_top_classes=4)]
45
 
46
  # Set the function to be called when the button is clicked
47
  submit_button.click(get_predictions, inputs=input_audio, outputs=output_labels)
 
2
  import numpy as np
3
  import librosa
4
  import time
 
5
  from tensorflow.keras.models import load_model
6
 
7
  # Load the emotion prediction model
 
40
  with gr.Row():
41
  input_audio = gr.Audio(label="Input Audio", type="filepath")
42
  submit_button = gr.Button("Submit")
43
+ output_labels = [gr.Label(num_top_classes=8)]
44
 
45
  # Set the function to be called when the button is clicked
46
  submit_button.click(get_predictions, inputs=input_audio, outputs=output_labels)