Priyacodes310 commited on
Commit
692a2cd
·
verified ·
1 Parent(s): 5a81412

Upload emotion_selector.py

Browse files
Files changed (1) hide show
  1. emotion_selector.py +6 -6
emotion_selector.py CHANGED
@@ -22,12 +22,12 @@ class EmotionSelector(gr.Component):
22
  return output_data
23
 
24
  def api_info(self):
25
- """Required method for Gradio components."""
26
- return {
27
- "type": "string", # Gradio expects a standard type
28
- "description": "Custom emotion selection component",
29
- "enum": ["joy", "anger", "sadness", "fear", "surprise", "love", "neutral", "disgust"]
30
- }
31
 
32
  def example_payload(self):
33
  """Required method to prevent NotImplementedError."""
 
22
  return output_data
23
 
24
  def api_info(self):
25
+ """Required method for Gradio components."""
26
+ return {
27
+ "type": "string",
28
+ "description": "Custom emotion selection component",
29
+ "enum": ["joy", "anger", "sadness", "fear", "surprise", "love", "neutral", "disgust"]
30
+ }
31
 
32
  def example_payload(self):
33
  """Required method to prevent NotImplementedError."""