Commit
·
c3402a8
1
Parent(s):
adca896
Updated app.py
Browse files
app.py
CHANGED
@@ -159,22 +159,21 @@ def route_and_visualize(user_input_text, rt_state, chat_history):
|
|
159 |
yield rt_state, chat_history, rt_state, gr.update(interactive=True)
|
160 |
|
161 |
# === Gradio UI ===
|
162 |
-
with gr.Blocks(theme=gr.themes.Ocean()) as demo:
|
163 |
-
gr.Markdown("## 🧭 Arch Router Simulation: Smart Department Dispatcher")
|
164 |
-
|
165 |
gr.Markdown(
|
166 |
-
|
167 |
-
|
168 |
-
|
|
|
169 |
)
|
170 |
|
171 |
with gr.Row():
|
172 |
-
with gr.Column(scale=
|
173 |
rt_state = gr.State(init_state())
|
174 |
chat_state = gr.State([])
|
175 |
roundtable = consilium_roundtable(value=init_state())
|
176 |
|
177 |
-
with gr.Column(scale=
|
178 |
chatbot = gr.Chatbot(label="Chat History", max_height=300)
|
179 |
textbox = gr.Textbox(placeholder="Describe your issue...", label="Ask Arch Router")
|
180 |
submit_btn = gr.Button("Submit")
|
|
|
159 |
yield rt_state, chat_history, rt_state, gr.update(interactive=True)
|
160 |
|
161 |
# === Gradio UI ===
|
162 |
+
with gr.Blocks(title="Arch Router Simulation: Smart Department Dispatcher", theme=gr.themes.Ocean()) as demo:
|
|
|
|
|
163 |
gr.Markdown(
|
164 |
+
"""
|
165 |
+
## 🧭 Arch Router Simulation: Smart Department Dispatcher
|
166 |
+
**This is a demo simulation of <a href="https://huggingface.co/katanemo/Arch-Router-1.5B" target="_blank">katanemo/Arch-Router-1.5B</a>**
|
167 |
+
"""
|
168 |
)
|
169 |
|
170 |
with gr.Row():
|
171 |
+
with gr.Column(scale=2):
|
172 |
rt_state = gr.State(init_state())
|
173 |
chat_state = gr.State([])
|
174 |
roundtable = consilium_roundtable(value=init_state())
|
175 |
|
176 |
+
with gr.Column(scale=1):
|
177 |
chatbot = gr.Chatbot(label="Chat History", max_height=300)
|
178 |
textbox = gr.Textbox(placeholder="Describe your issue...", label="Ask Arch Router")
|
179 |
submit_btn = gr.Button("Submit")
|