Spaces:
Sleeping
Sleeping
Upload emotion_selector.py
Browse files- 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 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 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."""
|