ShynBui commited on
Commit
38d25e7
·
verified ·
1 Parent(s): 812fa0e

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +3 -3
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 respose
 
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