Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,11 +2,8 @@ import openai
|
|
| 2 |
import os
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
openai.api_key = os.getenv('OPENAI_API_KEY') # 设置 OpenAI 的 key
|
| 9 |
-
openai.api_base = os.getenv('OPENAI_API_BASE') # 指定代理地址
|
| 10 |
|
| 11 |
class Conversation:
|
| 12 |
def __init__(self, prompt, num_of_round):
|
|
|
|
| 2 |
import os
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
+
openai.api_key ='open_ai_api_key'
|
| 6 |
+
openai.api_base="https://api.fe8.cn/v1"
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
class Conversation:
|
| 9 |
def __init__(self, prompt, num_of_round):
|