Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,10 +15,8 @@ logging.basicConfig(
|
|
15 |
format="%(asctime)s [%(levelname)s] [%(filename)s:%(lineno)d] %(message)s",
|
16 |
)
|
17 |
|
18 |
-
def init_openai_settings():
|
19 |
-
openai.api_key = os.getenv("openai_key")
|
20 |
|
21 |
-
my_api_key =
|
22 |
#"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" # 在这里输入你的 API 密钥
|
23 |
|
24 |
# if we are running in Docker
|
|
|
15 |
format="%(asctime)s [%(levelname)s] [%(filename)s:%(lineno)d] %(message)s",
|
16 |
)
|
17 |
|
|
|
|
|
18 |
|
19 |
+
my_api_key = os.getenv("openai_key")
|
20 |
#"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" # 在这里输入你的 API 密钥
|
21 |
|
22 |
# if we are running in Docker
|