Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -7,8 +7,8 @@ import io
|
|
7 |
|
8 |
def answer(selected, input_img):
|
9 |
|
10 |
-
print(input_img)
|
11 |
-
print(selected)
|
12 |
|
13 |
buffer = io.BytesIO()
|
14 |
input_img.save(buffer, format="PNG")
|
@@ -20,4 +20,4 @@ def answer(selected, input_img):
|
|
20 |
# Thực thi mô hình với hình ảnh đã mã hóa và đầu vào mô hình
|
21 |
response = executor.execute_with_image(user_input='', model_input=model_input, base64_image=image_data)
|
22 |
|
23 |
-
return
|
|
|
7 |
|
8 |
def answer(selected, input_img):
|
9 |
|
10 |
+
# print(input_img)
|
11 |
+
# print(selected)
|
12 |
|
13 |
buffer = io.BytesIO()
|
14 |
input_img.save(buffer, format="PNG")
|
|
|
20 |
# Thực thi mô hình với hình ảnh đã mã hóa và đầu vào mô hình
|
21 |
response = executor.execute_with_image(user_input='', model_input=model_input, base64_image=image_data)
|
22 |
|
23 |
+
return response
|