Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ if picture:
|
|
| 33 |
|
| 34 |
# 调用 OpenAI API 生成文字描述
|
| 35 |
response = openai.ChatCompletion.create(
|
| 36 |
-
model="gpt-
|
| 37 |
messages=[
|
| 38 |
{"role": "system", "content": "你是一位图像描述专家。"},
|
| 39 |
{"role": "user", "content": f"{prompt} 图像数据将作为背景知识提供。"},
|
|
|
|
| 33 |
|
| 34 |
# 调用 OpenAI API 生成文字描述
|
| 35 |
response = openai.ChatCompletion.create(
|
| 36 |
+
model="gpt-4",
|
| 37 |
messages=[
|
| 38 |
{"role": "system", "content": "你是一位图像描述专家。"},
|
| 39 |
{"role": "user", "content": f"{prompt} 图像数据将作为背景知识提供。"},
|