Spaces:
Running
Running
Update src/ux_agent.py
Browse files- src/ux_agent.py +2 -3
src/ux_agent.py
CHANGED
|
@@ -90,7 +90,7 @@ class AgentUX:
|
|
| 90 |
# REACT API ENDPOINTS
|
| 91 |
# ==========================================
|
| 92 |
# 🟢 FIX: Added 'dummy_trigger' to fix the React Zero-Input bug
|
| 93 |
-
def api_get_dialects(self
|
| 94 |
|
| 95 |
print("\n" + "="*40)
|
| 96 |
print("📡 REACT API WAKEUP: Requesting Dialects...")
|
|
@@ -1082,9 +1082,8 @@ class AgentUX:
|
|
| 1082 |
|
| 1083 |
# 🟢 FIX: Added an invisible input box to satisfy the JS client routing
|
| 1084 |
api_btn_dialects = gr.Button()
|
| 1085 |
-
api_dialects_in = gr.Textbox(value="trigger", visible=False)
|
| 1086 |
api_dialects_out = gr.Textbox()
|
| 1087 |
-
api_btn_dialects.click(fn=self.api_get_dialects, inputs=[
|
| 1088 |
|
| 1089 |
api_btn_mission = gr.Button()
|
| 1090 |
api_topic_in = gr.Textbox()
|
|
|
|
| 90 |
# REACT API ENDPOINTS
|
| 91 |
# ==========================================
|
| 92 |
# 🟢 FIX: Added 'dummy_trigger' to fix the React Zero-Input bug
|
| 93 |
+
def api_get_dialects(self):
|
| 94 |
|
| 95 |
print("\n" + "="*40)
|
| 96 |
print("📡 REACT API WAKEUP: Requesting Dialects...")
|
|
|
|
| 1082 |
|
| 1083 |
# 🟢 FIX: Added an invisible input box to satisfy the JS client routing
|
| 1084 |
api_btn_dialects = gr.Button()
|
|
|
|
| 1085 |
api_dialects_out = gr.Textbox()
|
| 1086 |
+
api_btn_dialects.click(fn=self.api_get_dialects, inputs=[], outputs=[api_dialects_out], api_name="api_get_dialects")
|
| 1087 |
|
| 1088 |
api_btn_mission = gr.Button()
|
| 1089 |
api_topic_in = gr.Textbox()
|