Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -180,7 +180,7 @@ def send_to_backend(img_path, user_id):
|
|
| 180 |
try:
|
| 181 |
with open(img_path, 'rb') as f:
|
| 182 |
files = {'file': ('generated_image.png', f, 'image/png')}
|
| 183 |
-
url = f" https://
|
| 184 |
print(f"🔁 [DEBUG] Sending POST to {url}")
|
| 185 |
response = requests.post(url, files=files)
|
| 186 |
|
|
|
|
| 180 |
try:
|
| 181 |
with open(img_path, 'rb') as f:
|
| 182 |
files = {'file': ('generated_image.png', f, 'image/png')}
|
| 183 |
+
url = f" https://aeaf-117-248-63-127.ngrok-free.app/images/upload/{user_id}"
|
| 184 |
print(f"🔁 [DEBUG] Sending POST to {url}")
|
| 185 |
response = requests.post(url, files=files)
|
| 186 |
|