Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ else:
|
|
26 |
authflag = False
|
27 |
|
28 |
if dockerflag:
|
29 |
-
my_api_key = os.environ.get("
|
30 |
# auth
|
31 |
username = os.environ.get("USERNAME")
|
32 |
password = os.environ.get("PASSWORD")
|
@@ -424,11 +424,11 @@ with gr.Blocks(
|
|
424 |
|
425 |
logging.info(
|
426 |
colorama.Back.GREEN
|
427 |
-
+ "\n
|
428 |
+ colorama.Style.RESET_ALL
|
429 |
)
|
430 |
# 默认开启本地服务器,默认可以直接从IP访问,默认不创建公开分享链接
|
431 |
-
demo.title = "
|
432 |
|
433 |
if __name__ == "__main__":
|
434 |
reload_javascript()
|
|
|
26 |
authflag = False
|
27 |
|
28 |
if dockerflag:
|
29 |
+
my_api_key = os.environ.get("OPENAI_KEY","")
|
30 |
# auth
|
31 |
username = os.environ.get("USERNAME")
|
32 |
password = os.environ.get("PASSWORD")
|
|
|
424 |
|
425 |
logging.info(
|
426 |
colorama.Back.GREEN
|
427 |
+
+ "\n温馨提示:访问 http://localhost:7860 查看界面"
|
428 |
+ colorama.Style.RESET_ALL
|
429 |
)
|
430 |
# 默认开启本地服务器,默认可以直接从IP访问,默认不创建公开分享链接
|
431 |
+
demo.title = "ChatGPT 🚀"
|
432 |
|
433 |
if __name__ == "__main__":
|
434 |
reload_javascript()
|