Commit ·
d61bc93
1
Parent(s): 09f5bfb
fix: Move theme to launch() and remove type parameter from Chatbot
Browse files
app/ui.py
CHANGED
|
@@ -158,8 +158,7 @@ class ContextVisualizerUI:
|
|
| 158 |
"""Create the Gradio interface"""
|
| 159 |
|
| 160 |
with gr.Blocks(
|
| 161 |
-
title="Context Engineering Visualizer"
|
| 162 |
-
theme=gr.themes.Soft()
|
| 163 |
) as interface:
|
| 164 |
|
| 165 |
gr.Markdown("""
|
|
@@ -223,8 +222,7 @@ class ContextVisualizerUI:
|
|
| 223 |
chatbot = gr.Chatbot(
|
| 224 |
label="Conversation",
|
| 225 |
height=500,
|
| 226 |
-
avatar_images=(None, None)
|
| 227 |
-
type='messages'
|
| 228 |
)
|
| 229 |
|
| 230 |
query_input = gr.Textbox(
|
|
@@ -286,5 +284,6 @@ def launch_ui(
|
|
| 286 |
interface.launch(
|
| 287 |
share=share,
|
| 288 |
server_name=server_name,
|
| 289 |
-
server_port=server_port
|
|
|
|
| 290 |
)
|
|
|
|
| 158 |
"""Create the Gradio interface"""
|
| 159 |
|
| 160 |
with gr.Blocks(
|
| 161 |
+
title="Context Engineering Visualizer"
|
|
|
|
| 162 |
) as interface:
|
| 163 |
|
| 164 |
gr.Markdown("""
|
|
|
|
| 222 |
chatbot = gr.Chatbot(
|
| 223 |
label="Conversation",
|
| 224 |
height=500,
|
| 225 |
+
avatar_images=(None, None)
|
|
|
|
| 226 |
)
|
| 227 |
|
| 228 |
query_input = gr.Textbox(
|
|
|
|
| 284 |
interface.launch(
|
| 285 |
share=share,
|
| 286 |
server_name=server_name,
|
| 287 |
+
server_port=server_port,
|
| 288 |
+
theme=gr.themes.Soft()
|
| 289 |
)
|