Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
import openai
|
3 |
|
|
|
|
|
4 |
# 定义语音助手函数
|
5 |
def voice_chatgpt(query):
|
6 |
|
|
|
1 |
import gradio as gr
|
2 |
import openai
|
3 |
|
4 |
+
# 设置OpenAI API凭据
|
5 |
+
openai.api_key = "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"
|
6 |
# 定义语音助手函数
|
7 |
def voice_chatgpt(query):
|
8 |
|