Vishaltiwari2019 commited on
Commit
9618452
·
verified ·
1 Parent(s): 0bf1bd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ tts_demo = gr.Interface.load(
15
  emotion_model_checkpoint = "MuntasirHossain/RoBERTa-base-finetuned-emotion"
16
  emotion_model = pipeline("text-classification", model=emotion_model_checkpoint)
17
 
18
- def classify_emotion_and_speech(text):
19
  # Emotion classification
20
  emotion_label = emotion_model(text)[0]["label"]
21
 
@@ -61,7 +61,7 @@ combined_demo = gr.Interface(
61
  inputs="textbox",
62
  outputs=["text", "audio"],
63
  title=emotion_title,
64
- theme=theme, # Include the theme here
65
  description=emotion_description,
66
  examples=emotion_examples,
67
  )
 
15
  emotion_model_checkpoint = "MuntasirHossain/RoBERTa-base-finetuned-emotion"
16
  emotion_model = pipeline("text-classification", model=emotion_model_checkpoint)
17
 
18
+ def classify_emotion_and_speech(text=""):
19
  # Emotion classification
20
  emotion_label = emotion_model(text)[0]["label"]
21
 
 
61
  inputs="textbox",
62
  outputs=["text", "audio"],
63
  title=emotion_title,
64
+ theme=theme,
65
  description=emotion_description,
66
  examples=emotion_examples,
67
  )