Update app.py
Browse files
app.py
CHANGED
|
@@ -128,7 +128,6 @@ def upload_attachment(cookie ,organization_id,file_path):
|
|
| 128 |
}
|
| 129 |
print(files)
|
| 130 |
response = requests.post(url, headers=headers, files=files)
|
| 131 |
-
print(f"response:{response.text}")
|
| 132 |
if response.status_code == 200:
|
| 133 |
return response.json()
|
| 134 |
else:
|
|
@@ -136,11 +135,6 @@ def upload_attachment(cookie ,organization_id,file_path):
|
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
def request_to_v2(message, cookie, user_id,attachment=None,context=[]):
|
| 145 |
context = [message]
|
| 146 |
|
|
|
|
| 128 |
}
|
| 129 |
print(files)
|
| 130 |
response = requests.post(url, headers=headers, files=files)
|
|
|
|
| 131 |
if response.status_code == 200:
|
| 132 |
return response.json()
|
| 133 |
else:
|
|
|
|
| 135 |
|
| 136 |
|
| 137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
def request_to_v2(message, cookie, user_id,attachment=None,context=[]):
|
| 139 |
context = [message]
|
| 140 |
|