Update app.py
Browse files
app.py
CHANGED
@@ -43,19 +43,18 @@ def chat(message, history, model_name):
|
|
43 |
|
44 |
with gr.Blocks() as app:
|
45 |
gr.Markdown("## Chatbot with DeepSeek Models")
|
46 |
-
|
47 |
-
with gr.Row():
|
48 |
-
chat_interface = gr.ChatInterface(
|
49 |
-
chat,
|
50 |
-
type="messages",
|
51 |
-
flagging_mode="manual",
|
52 |
-
save_history=True,
|
53 |
-
)
|
54 |
-
model_selector = gr.Dropdown(
|
55 |
choices=list(MODEL_NAMES.keys()),
|
56 |
value="DeepSeek-R1-Distill-Llama-8B",
|
57 |
label="Select Model",
|
58 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
|
61 |
app.launch()
|
|
|
43 |
|
44 |
with gr.Blocks() as app:
|
45 |
gr.Markdown("## Chatbot with DeepSeek Models")
|
46 |
+
model_selector = gr.Dropdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
choices=list(MODEL_NAMES.keys()),
|
48 |
value="DeepSeek-R1-Distill-Llama-8B",
|
49 |
label="Select Model",
|
50 |
)
|
51 |
+
chat_interface = gr.ChatInterface(
|
52 |
+
chat,
|
53 |
+
type="messages",
|
54 |
+
flagging_mode="manual",
|
55 |
+
save_history=True,
|
56 |
+
)
|
57 |
+
|
58 |
|
59 |
|
60 |
app.launch()
|