Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,14 +8,14 @@ import requests
|
|
8 |
|
9 |
dotenv.load_dotenv(override=True)
|
10 |
|
11 |
-
|
12 |
openai_api_key = os.getenv("OPENAI_KEY")
|
13 |
pushover_user = os.getenv("PUSHOVER_USER")
|
14 |
pushover_token = os.getenv("PUSHOVER_TOKEN")
|
15 |
|
16 |
-
if pushover_user and pushover_token:
|
17 |
-
|
18 |
-
|
19 |
|
20 |
def send_pushover_notification(message):
|
21 |
url = "https://api.pushover.net/1/messages.json"
|
|
|
8 |
|
9 |
dotenv.load_dotenv(override=True)
|
10 |
|
11 |
+
|
12 |
openai_api_key = os.getenv("OPENAI_KEY")
|
13 |
pushover_user = os.getenv("PUSHOVER_USER")
|
14 |
pushover_token = os.getenv("PUSHOVER_TOKEN")
|
15 |
|
16 |
+
#if pushover_user and pushover_token:
|
17 |
+
# print("Pushover user and token found")
|
18 |
+
# print("Pushover user and token not found")
|
19 |
|
20 |
def send_pushover_notification(message):
|
21 |
url = "https://api.pushover.net/1/messages.json"
|