Update app.py
Browse files
app.py
CHANGED
|
@@ -41,11 +41,14 @@ with gr.Blocks() as demo:
|
|
| 41 |
gr.Markdown("# DeepSeek-R1-Distill-Qwen-1.5B-openvino")
|
| 42 |
with gr.Tabs():
|
| 43 |
with gr.TabItem("聊天"):
|
| 44 |
-
|
| 45 |
fn=respond,
|
|
|
|
|
|
|
| 46 |
api_name="/hchat",
|
| 47 |
-
title="
|
| 48 |
-
description="
|
|
|
|
| 49 |
)
|
| 50 |
|
| 51 |
|
|
|
|
| 41 |
gr.Markdown("# DeepSeek-R1-Distill-Qwen-1.5B-openvino")
|
| 42 |
with gr.Tabs():
|
| 43 |
with gr.TabItem("聊天"):
|
| 44 |
+
chat_if = gr.Interface(
|
| 45 |
fn=respond,
|
| 46 |
+
inputs=gr.Textbox(label="Prompt", placeholder="請輸入訊息..."),
|
| 47 |
+
outputs=gr.Textbox(label="Response", interactive=False),
|
| 48 |
api_name="/hchat",
|
| 49 |
+
title="MaxTest API",
|
| 50 |
+
description="回傳輸入內容的測試 API",
|
| 51 |
+
layout="vertical"
|
| 52 |
)
|
| 53 |
|
| 54 |
|