hsuwill000 commited on
Commit
7fae2e6
·
verified ·
1 Parent(s): 3486524

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
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
- chat = gr.ChatInterface(
45
  fn=respond,
 
 
46
  api_name="/hchat",
47
- title="聊天介面",
48
- description="DeepSeek-R1-Distill-Qwen-1.5B-openvino 聊天接口"
 
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