Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -217,7 +217,7 @@ def send_to_backend(img_path, user_id):
|
|
| 217 |
files = {'file': ('generated_image.png', f, 'image/png')}
|
| 218 |
|
| 219 |
# Your backend endpoint here
|
| 220 |
-
url = f"https://
|
| 221 |
response = requests.post(url, files=files)
|
| 222 |
|
| 223 |
if response.status_code == 201:
|
|
|
|
| 217 |
files = {'file': ('generated_image.png', f, 'image/png')}
|
| 218 |
|
| 219 |
# Your backend endpoint here
|
| 220 |
+
url = f" https://a56e-103-40-74-78.ngrok-free.app/images/upload/{user_id}"
|
| 221 |
response = requests.post(url, files=files)
|
| 222 |
|
| 223 |
if response.status_code == 201:
|