Pashtetuum commited on
Commit
a91dc8e
1 Parent(s): 369fd9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def predict(zip_bytes):
41
  # Сохранение изображения в формате base64
42
  _, img_encoded = cv2.imencode('.png', img_resized)
43
  img_base64 = base64.b64encode(img_encoded).decode('utf-8')
44
- predictions.append((filename,f'data:image/png;base64,{img_base64}', predicted_class_translation))
45
  return predictions
46
 
47
  interface = gr.Interface(
 
41
  # Сохранение изображения в формате base64
42
  _, img_encoded = cv2.imencode('.png', img_resized)
43
  img_base64 = base64.b64encode(img_encoded).decode('utf-8')
44
+ predictions.append((filename,f'<img src="data:image/png;base64,{img_base64}">', predicted_class_translation))
45
  return predictions
46
 
47
  interface = gr.Interface(