Spaces:
Sleeping
Sleeping
sanbo
commited on
Commit
·
9bf81ad
1
Parent(s):
3012e75
update sth. at 2024-11-18 23:23:30
Browse files
app.py
CHANGED
@@ -111,8 +111,7 @@ def build_interface():
|
|
111 |
chatgpt_button = gr.Button("发送")
|
112 |
|
113 |
def chatgpt_handler(user_input):
|
114 |
-
|
115 |
-
return chatgpt_4o_mini(messages)
|
116 |
|
117 |
chatgpt_button.click(chatgpt_handler, inputs=chatgpt_input, outputs=chatgpt_output)
|
118 |
|
|
|
111 |
chatgpt_button = gr.Button("发送")
|
112 |
|
113 |
def chatgpt_handler(user_input):
|
114 |
+
return chatgpt_4o_mini(user_input)
|
|
|
115 |
|
116 |
chatgpt_button.click(chatgpt_handler, inputs=chatgpt_input, outputs=chatgpt_output)
|
117 |
|
支持类型.md
CHANGED
@@ -7,6 +7,14 @@ messages = [{"role": "user", "content": "中国的首都是哪里?"}]
|
|
7 |
client = InferenceClient("meta-llama/Llama-3.2-11B-Vision-Instruct")
|
8 |
client.chat_completion(messages, max_tokens=100)
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
## 图片
|
11 |
> 中文识别不好
|
12 |
|
|
|
7 |
client = InferenceClient("meta-llama/Llama-3.2-11B-Vision-Instruct")
|
8 |
client.chat_completion(messages, max_tokens=100)
|
9 |
|
10 |
+
|
11 |
+
|
12 |
+
from huggingface_hub import InferenceClient
|
13 |
+
messages = [{"role": "user", "content": "中国的首都是哪里?"}]
|
14 |
+
client = InferenceClient("google/gemma-2-2b-it")
|
15 |
+
client.chat_completion(messages, max_tokens=100)
|
16 |
+
|
17 |
+
|
18 |
## 图片
|
19 |
> 中文识别不好
|
20 |
|