Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -389,7 +389,7 @@ def convert_data_format(data, from_fmt, to_fmt, model_name, max_tokens):
|
|
| 389 |
|
| 390 |
# ===== UI =====
|
| 391 |
|
| 392 |
-
with gr.Blocks(title="Axon v6"
|
| 393 |
|
| 394 |
gr.HTML("""
|
| 395 |
<div style="background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4); border-radius: 16px; padding: 24px; margin-bottom: 16px;">
|
|
@@ -442,7 +442,7 @@ with gr.Blocks(title="Axon v6", theme=gr.themes.Soft(primary_hue="indigo")) as d
|
|
| 442 |
""")
|
| 443 |
|
| 444 |
with gr.TabItem("💬 Chat"):
|
| 445 |
-
chatbot = gr.Chatbot(height=400
|
| 446 |
with gr.Row():
|
| 447 |
msg = gr.Textbox(placeholder="Ask anything...", show_label=False, scale=8)
|
| 448 |
send = gr.Button("Send", variant="primary", scale=1)
|
|
@@ -693,4 +693,4 @@ with gr.Blocks(title="Axon v6", theme=gr.themes.Soft(primary_hue="indigo")) as d
|
|
| 693 |
format_btn.click(convert_data_format, [format_input, format_from, format_to, model_dropdown, max_tokens], format_output)
|
| 694 |
|
| 695 |
print("🔥 Axon v6 starting...")
|
| 696 |
-
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 389 |
|
| 390 |
# ===== UI =====
|
| 391 |
|
| 392 |
+
with gr.Blocks(title="Axon v6") as demo:
|
| 393 |
|
| 394 |
gr.HTML("""
|
| 395 |
<div style="background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4); border-radius: 16px; padding: 24px; margin-bottom: 16px;">
|
|
|
|
| 442 |
""")
|
| 443 |
|
| 444 |
with gr.TabItem("💬 Chat"):
|
| 445 |
+
chatbot = gr.Chatbot(height=400)
|
| 446 |
with gr.Row():
|
| 447 |
msg = gr.Textbox(placeholder="Ask anything...", show_label=False, scale=8)
|
| 448 |
send = gr.Button("Send", variant="primary", scale=1)
|
|
|
|
| 693 |
format_btn.click(convert_data_format, [format_input, format_from, format_to, model_dropdown, max_tokens], format_output)
|
| 694 |
|
| 695 |
print("🔥 Axon v6 starting...")
|
| 696 |
+
demo.launch(server_name="0.0.0.0", server_port=7860, theme=gr.themes.Soft(primary_hue="indigo"))
|