xiaoming32236046
commited on
Commit
•
3e58957
1
Parent(s):
17ec3bf
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
2 |
import openai
|
3 |
import os
|
4 |
from openai import OpenAI
|
5 |
-
|
6 |
-
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
|
7 |
# 设置OpenAI的API密钥
|
8 |
|
9 |
# 将用户的输入数据以正确的格式提交给模型
|
|
|
2 |
import openai
|
3 |
import os
|
4 |
from openai import OpenAI
|
5 |
+
client = OpenAI(api_key="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")
|
6 |
+
#client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
|
7 |
# 设置OpenAI的API密钥
|
8 |
|
9 |
# 将用户的输入数据以正确的格式提交给模型
|