ning8429 commited on
Commit
a325f91
·
verified ·
1 Parent(s): 3762ea2

Update api_server.py

Browse files
Files changed (1) hide show
  1. api_server.py +1 -1
api_server.py CHANGED
@@ -218,7 +218,7 @@ def text2img():
218
  api_name="/predict"
219
  )
220
  print(f"===== FLASK API---/text2img 文字轉圖片result[0]:{result[0]} =====")
221
- result_img = convert_webp_to_base64(result[0])
222
  print(f"===== FLASK API---/text2img 文字轉圖片轉base64:{result_img} =====")
223
 
224
  # 建立回應資料
 
218
  api_name="/predict"
219
  )
220
  print(f"===== FLASK API---/text2img 文字轉圖片result[0]:{result[0]} =====")
221
+ result_img = image_to_base64(result[0])
222
  print(f"===== FLASK API---/text2img 文字轉圖片轉base64:{result_img} =====")
223
 
224
  # 建立回應資料