thanglekdi commited on
Commit
68f58b6
·
1 Parent(s): 79acb32

test deepseek

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  import call_api
3
 
4
  chat = gr.ChatInterface(
5
- call_api.call_openai, #chat
6
  title="Trợ lý Học Tập AI",
7
  description="Nhập câu hỏi của bạn về Toán, Lý, Hóa, Văn… và nhận giải đáp chi tiết ngay lập tức!",
8
  additional_inputs=[
@@ -10,8 +10,9 @@ chat = gr.ChatInterface(
10
  gr.Slider(1, 2048, value=200, step=1, label="Max new tokens"),
11
  gr.Slider(0.1, 4.0, value=0.7, step=0.1, label="Temperature"),
12
  gr.Slider(0.1, 1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
13
- # gr.Image(type="pil", label="Attach an image (optional)"),
14
- # gr.File(label="Upload a file (optional)"),
 
15
  ],
16
  # examples=[
17
  # # Mỗi item: [message, system_message, max_tokens, temperature, top_p]
 
2
  import call_api
3
 
4
  chat = gr.ChatInterface(
5
+ call_api.call_deepseek, #chat
6
  title="Trợ lý Học Tập AI",
7
  description="Nhập câu hỏi của bạn về Toán, Lý, Hóa, Văn… và nhận giải đáp chi tiết ngay lập tức!",
8
  additional_inputs=[
 
10
  gr.Slider(1, 2048, value=200, step=1, label="Max new tokens"),
11
  gr.Slider(0.1, 4.0, value=0.7, step=0.1, label="Temperature"),
12
  gr.Slider(0.1, 1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
13
+
14
+ # gr.Image(type="pil", label="Attach an image (optional)"), # báo lỗi
15
+ # gr.File(label="Upload a file (optional)"), # báo lỗi
16
  ],
17
  # examples=[
18
  # # Mỗi item: [message, system_message, max_tokens, temperature, top_p]