ranranrunforit commited on
Commit
ad6ed2a
·
verified ·
1 Parent(s): 56293f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,8 +13,8 @@ def push(text):
13
  requests.post(
14
  "https://api.pushover.net/1/messages.json",
15
  data={
16
- "token": os.environ("PUSHOVER_TOKEN"),
17
- "user": os.environ("PUSHOVER_USER"),
18
  "message": text,
19
  }
20
  )
@@ -76,7 +76,7 @@ tools = [{"type": "function", "function": record_user_details_json},
76
  class Me:
77
 
78
  def __init__(self):
79
- open_router_api_key = os.environ('OPEN_ROUTER_API_KEY')
80
  if open_router_api_key:
81
  print(f"Open router API Key exists and begins {open_router_api_key[:8]}")
82
  else:
 
13
  requests.post(
14
  "https://api.pushover.net/1/messages.json",
15
  data={
16
+ "token": os.getenv("PUSHOVER_TOKEN"),
17
+ "user": os.getenv("PUSHOVER_USER"),
18
  "message": text,
19
  }
20
  )
 
76
  class Me:
77
 
78
  def __init__(self):
79
+ open_router_api_key = os.getenv('OPEN_ROUTER_API_KEY')
80
  if open_router_api_key:
81
  print(f"Open router API Key exists and begins {open_router_api_key[:8]}")
82
  else: