Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ load_dotenv(override=True)
|
|
15 |
def push(text):
|
16 |
try:
|
17 |
Path("chat_logs").mkdir(exist_ok=True)
|
18 |
-
|
19 |
requests.post(
|
20 |
"https://api.pushover.net/1/messages.json",
|
21 |
data={
|
@@ -42,6 +42,7 @@ Recent Chat:
|
|
42 |
{latest_log}"
|
43 |
push(msg)
|
44 |
return {"recorded": "ok"}
|
|
|
45 |
|
46 |
def record_unknown_question(question):
|
47 |
latest_log = "
|
@@ -56,6 +57,7 @@ Recent Chat:
|
|
56 |
{latest_log}"
|
57 |
push(msg)
|
58 |
return {"recorded": "ok"}
|
|
|
59 |
|
60 |
record_user_details_json = {
|
61 |
"name": "record_user_details",
|
|
|
15 |
def push(text):
|
16 |
try:
|
17 |
Path("chat_logs").mkdir(exist_ok=True)
|
18 |
+
requests.post(
|
19 |
requests.post(
|
20 |
"https://api.pushover.net/1/messages.json",
|
21 |
data={
|
|
|
42 |
{latest_log}"
|
43 |
push(msg)
|
44 |
return {"recorded": "ok"}
|
45 |
+
return {"recorded": "ok"}
|
46 |
|
47 |
def record_unknown_question(question):
|
48 |
latest_log = "
|
|
|
57 |
{latest_log}"
|
58 |
push(msg)
|
59 |
return {"recorded": "ok"}
|
60 |
+
return {"recorded": "ok"}
|
61 |
|
62 |
record_user_details_json = {
|
63 |
"name": "record_user_details",
|