Spaces:
Sleeping
Sleeping
Fix category dropdown
Browse files- gradio_ui.py +3 -2
gradio_ui.py
CHANGED
|
@@ -148,7 +148,7 @@ An **OpenEnv** environment for training AI agents to handle customer support tic
|
|
| 148 |
**Tasks:** 1 = Classify 路 2 = Classify + Action 路 3 = Full Queue Resolution
|
| 149 |
"""
|
| 150 |
|
| 151 |
-
with gr.Blocks(title="Support Ticket Env"
|
| 152 |
gr.Markdown(DESCRIPTION)
|
| 153 |
|
| 154 |
with gr.Row():
|
|
@@ -165,9 +165,10 @@ with gr.Blocks(title="Support Ticket Env", theme=gr.themes.Soft()) as demo:
|
|
| 165 |
value="classify", label="Action Type",
|
| 166 |
)
|
| 167 |
category_dd = gr.Dropdown(
|
| 168 |
-
["billing", "technical", "account", "general", "refund"],
|
| 169 |
label="Category (for classify)",
|
| 170 |
value=None,
|
|
|
|
| 171 |
)
|
| 172 |
reply_box = gr.Textbox(label="Reply Text (for reply)", lines=3)
|
| 173 |
reason_box = gr.Textbox(label="Reason (optional)")
|
|
|
|
| 148 |
**Tasks:** 1 = Classify 路 2 = Classify + Action 路 3 = Full Queue Resolution
|
| 149 |
"""
|
| 150 |
|
| 151 |
+
with gr.Blocks(title="Support Ticket Env") as demo:
|
| 152 |
gr.Markdown(DESCRIPTION)
|
| 153 |
|
| 154 |
with gr.Row():
|
|
|
|
| 165 |
value="classify", label="Action Type",
|
| 166 |
)
|
| 167 |
category_dd = gr.Dropdown(
|
| 168 |
+
choices=["billing", "technical", "account", "general", "refund"],
|
| 169 |
label="Category (for classify)",
|
| 170 |
value=None,
|
| 171 |
+
allow_custom_value=False,
|
| 172 |
)
|
| 173 |
reply_box = gr.Textbox(label="Reply Text (for reply)", lines=3)
|
| 174 |
reason_box = gr.Textbox(label="Reason (optional)")
|