Spaces:
Running
Running
fix: remove hard block on empty context for Custom vertical — make context optional
Browse files- chat_interface.py +2 -7
chat_interface.py
CHANGED
|
@@ -5268,13 +5268,8 @@ def create_chat_tab(chat_controller_state, settings, current_stage, current_mode
|
|
| 5268 |
hide_welcome = gr.update(visible=False)
|
| 5269 |
|
| 5270 |
if is_custom:
|
| 5271 |
-
# Custom vertical: context
|
| 5272 |
-
use_case_str = (additional_info or "").strip()
|
| 5273 |
-
if not use_case_str:
|
| 5274 |
-
history = history or []
|
| 5275 |
-
history.append(("GO", "❌ Please describe your use case in the Context field when using Custom vertical."))
|
| 5276 |
-
yield (controller, gr.update(value=history, visible=True), stage, model, company, usecase, get_progress_html(stage), hide_welcome)
|
| 5277 |
-
return
|
| 5278 |
controller.vertical = None
|
| 5279 |
controller.function = None
|
| 5280 |
controller.use_case_config = get_use_case_config("Generic", "Generic")
|
|
|
|
| 5268 |
hide_welcome = gr.update(visible=False)
|
| 5269 |
|
| 5270 |
if is_custom:
|
| 5271 |
+
# Custom vertical: context drives the use case; function dropdown is ignored
|
| 5272 |
+
use_case_str = (additional_info or "").strip() or "Custom Demo"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5273 |
controller.vertical = None
|
| 5274 |
controller.function = None
|
| 5275 |
controller.use_case_config = get_use_case_config("Generic", "Generic")
|