Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,20 +59,12 @@ def chat():
|
|
| 59 |
print("μλ΅ μκ° : " + result_list[0] +"\nresult:"+ result)
|
| 60 |
|
| 61 |
headers = {'Content-Type': 'application/json'}
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
{
|
| 67 |
-
"simpleText": {
|
| 68 |
-
"text": result
|
| 69 |
-
}
|
| 70 |
-
}
|
| 71 |
-
]
|
| 72 |
-
}
|
| 73 |
-
}
|
| 74 |
if arr[3] != "Asia/Seoul":
|
| 75 |
-
response_collback = requests.post(
|
| 76 |
print(response_collback)
|
| 77 |
|
| 78 |
th_a = Thread(target = chat)
|
|
|
|
| 59 |
print("μλ΅ μκ° : " + result_list[0] +"\nresult:"+ result)
|
| 60 |
|
| 61 |
headers = {'Content-Type': 'application/json'}
|
| 62 |
+
body = {
|
| 63 |
+
"url" : arr[3],
|
| 64 |
+
"data" : result
|
| 65 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
if arr[3] != "Asia/Seoul":
|
| 67 |
+
response_collback = requests.post("https://9174963504.for-seoul.synctreengine.com/call", headers=headers, data=json.dumps(body))
|
| 68 |
print(response_collback)
|
| 69 |
|
| 70 |
th_a = Thread(target = chat)
|