Spaces:
Running
Running
milwright
commited on
Commit
·
9289e4a
1
Parent(s):
49b0a3a
fix: update preview chatbot to use gradio 5.x message format
Browse files
app.py
CHANGED
|
@@ -91,11 +91,11 @@ class SpaceGenerator:
|
|
| 91 |
self.main_tabs = main_tabs # Store reference for tab switching
|
| 92 |
|
| 93 |
# Configuration Tab
|
| 94 |
-
with gr.Tab("
|
| 95 |
self._create_configuration_tab()
|
| 96 |
|
| 97 |
# Preview Tab
|
| 98 |
-
with gr.Tab("
|
| 99 |
self._create_preview_tab()
|
| 100 |
|
| 101 |
# Documentation Tab
|
|
@@ -442,7 +442,7 @@ class SpaceGenerator:
|
|
| 442 |
label=config.get('name', 'AI Assistant'),
|
| 443 |
height=400,
|
| 444 |
show_copy_button=True,
|
| 445 |
-
|
| 446 |
)
|
| 447 |
|
| 448 |
# Example buttons
|
|
|
|
| 91 |
self.main_tabs = main_tabs # Store reference for tab switching
|
| 92 |
|
| 93 |
# Configuration Tab
|
| 94 |
+
with gr.Tab("Configuration"):
|
| 95 |
self._create_configuration_tab()
|
| 96 |
|
| 97 |
# Preview Tab
|
| 98 |
+
with gr.Tab("Preview"):
|
| 99 |
self._create_preview_tab()
|
| 100 |
|
| 101 |
# Documentation Tab
|
|
|
|
| 442 |
label=config.get('name', 'AI Assistant'),
|
| 443 |
height=400,
|
| 444 |
show_copy_button=True,
|
| 445 |
+
type='messages'
|
| 446 |
)
|
| 447 |
|
| 448 |
# Example buttons
|