Spaces:
Runtime error
Runtime error
fix: gr.Code language='text' not supported in Gradio 6 — use gr.Textbox
Browse files
app.py
CHANGED
|
@@ -4542,11 +4542,11 @@ def create_ui():
|
|
| 4542 |
)
|
| 4543 |
preview_colors_btn = gr.Button("👁️ Preview Color Names", variant="secondary", scale=1)
|
| 4544 |
|
| 4545 |
-
color_preview_output = gr.
|
| 4546 |
label="Color Classification Preview (Rule-Based — No LLM)",
|
| 4547 |
-
language="text",
|
| 4548 |
lines=15,
|
| 4549 |
-
|
|
|
|
| 4550 |
)
|
| 4551 |
|
| 4552 |
with gr.Row():
|
|
|
|
| 4542 |
)
|
| 4543 |
preview_colors_btn = gr.Button("👁️ Preview Color Names", variant="secondary", scale=1)
|
| 4544 |
|
| 4545 |
+
color_preview_output = gr.Textbox(
|
| 4546 |
label="Color Classification Preview (Rule-Based — No LLM)",
|
|
|
|
| 4547 |
lines=15,
|
| 4548 |
+
max_lines=30,
|
| 4549 |
+
interactive=False,
|
| 4550 |
)
|
| 4551 |
|
| 4552 |
with gr.Row():
|