aiderd commited on
Commit
20a9d0b
·
1 Parent(s): 9ed58f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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