Spaces:
Runtime error
Runtime error
Commit
·
474d71a
1
Parent(s):
403777d
Fix syntax error
Browse files
app.py
CHANGED
|
@@ -397,7 +397,7 @@ class ConversationBot:
|
|
| 397 |
print("===============Running run_image =============")
|
| 398 |
print("Inputs:", image, state)
|
| 399 |
print("======>Previous memory:\n %s" % self.agent.memory)
|
| 400 |
-
|
| 401 |
print("======>Auto Resize Image...")
|
| 402 |
img = Image.open(image.name)
|
| 403 |
width, height = img.size
|
|
|
|
| 397 |
print("===============Running run_image =============")
|
| 398 |
print("Inputs:", image, state)
|
| 399 |
print("======>Previous memory:\n %s" % self.agent.memory)
|
| 400 |
+
image_filename = os.path.join('image', str(uuid.uuid4())[0:8] + ".png")
|
| 401 |
print("======>Auto Resize Image...")
|
| 402 |
img = Image.open(image.name)
|
| 403 |
width, height = img.size
|