Priyacodes310 commited on
Commit
09bfa3d
·
verified ·
1 Parent(s): 97bd6a1

Upload emotion_selector.py

Browse files
Files changed (1) hide show
  1. emotion_selector.py +4 -0
emotion_selector.py CHANGED
@@ -25,6 +25,10 @@ class EmotionSelector(gr.Component):
25
  """Required method for Gradio components."""
26
  return {"type": "EmotionSelector", "description": "Custom emotion selection component"}
27
 
 
 
 
 
28
  def get_block(self, root):
29
  with gr.Row():
30
  gr.Markdown(f"### {self.label}")
 
25
  """Required method for Gradio components."""
26
  return {"type": "EmotionSelector", "description": "Custom emotion selection component"}
27
 
28
+ def example_payload(self):
29
+ """Required method to prevent NotImplementedError."""
30
+ return ["neutral"] # Default example input
31
+
32
  def get_block(self, root):
33
  with gr.Row():
34
  gr.Markdown(f"### {self.label}")