Spaces:
Sleeping
Sleeping
Commit
•
f787298
1
Parent(s):
593e272
Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,9 @@ else:
|
|
26 |
|
27 |
authflag = False
|
28 |
|
29 |
-
if
|
30 |
my_api_key = os.environ.get("my_api_key")
|
|
|
31 |
if my_api_key == "empty":
|
32 |
logging.error("Please give a api key!")
|
33 |
sys.exit(1)
|
|
|
26 |
|
27 |
authflag = False
|
28 |
|
29 |
+
if not my_api_key:
|
30 |
my_api_key = os.environ.get("my_api_key")
|
31 |
+
if dockerflag:
|
32 |
if my_api_key == "empty":
|
33 |
logging.error("Please give a api key!")
|
34 |
sys.exit(1)
|