Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ class ChatBot:
|
|
| 56 |
x1, y1, x2, y2 = map(int, box)
|
| 57 |
draw.rectangle([x1, y1, x2, y2], outline="red", width=3)
|
| 58 |
file_name = secrets.token_hex(10) + ".png"
|
| 59 |
-
file_path = os.path.join(image_dir, file_name)
|
| 60 |
img.save(file_path, format="PNG")
|
| 61 |
return file_path
|
| 62 |
except Exception as e:
|
|
|
|
| 56 |
x1, y1, x2, y2 = map(int, box)
|
| 57 |
draw.rectangle([x1, y1, x2, y2], outline="red", width=3)
|
| 58 |
file_name = secrets.token_hex(10) + ".png"
|
| 59 |
+
file_path = os.path.join(base_url, image_dir, file_name)
|
| 60 |
img.save(file_path, format="PNG")
|
| 61 |
return file_path
|
| 62 |
except Exception as e:
|