Spaces:
Sleeping
Sleeping
Chuan Hu
commited on
使用中文变量名
Browse files- ChuanhuChatbot.py +2 -2
ChuanhuChatbot.py
CHANGED
@@ -2,10 +2,10 @@ import gradio as gr
|
|
2 |
import openai
|
3 |
import markdown
|
4 |
|
5 |
-
|
6 |
initial_prompt = "You are a helpful assistant."
|
7 |
|
8 |
-
openai.api_key =
|
9 |
|
10 |
def get_response(system, context, raw = False):
|
11 |
response = openai.ChatCompletion.create(
|
|
|
2 |
import openai
|
3 |
import markdown
|
4 |
|
5 |
+
我的API密钥 = "sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" # 在这里输入你的 API 密钥
|
6 |
initial_prompt = "You are a helpful assistant."
|
7 |
|
8 |
+
openai.api_key = 我的API密钥
|
9 |
|
10 |
def get_response(system, context, raw = False):
|
11 |
response = openai.ChatCompletion.create(
|