Spaces:
Sleeping
Sleeping
Change category to radio buttons
Browse files- gradio_ui.py +3 -4
gradio_ui.py
CHANGED
|
@@ -164,11 +164,10 @@ with gr.Blocks(title="Support Ticket Env") as demo:
|
|
| 164 |
["classify", "reply", "escalate", "close"],
|
| 165 |
value="classify", label="Action Type",
|
| 166 |
)
|
| 167 |
-
category_dd = gr.
|
| 168 |
-
|
| 169 |
-
|
| 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)")
|
|
|
|
| 164 |
["classify", "reply", "escalate", "close"],
|
| 165 |
value="classify", label="Action Type",
|
| 166 |
)
|
| 167 |
+
category_dd = gr.Radio(
|
| 168 |
+
choices=["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)")
|