wookimchye commited on
Commit
f28a3a3
·
verified ·
1 Parent(s): b42a91c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -4,9 +4,6 @@ from PIL import Image
4
  import gradio as gr
5
  from huggingface_hub import snapshot_download
6
  import os
7
- import cv2
8
-
9
- newsize = (640, 640)
10
 
11
  model_path = "best_int8_openvino_model"
12
 
@@ -25,8 +22,7 @@ def load_model(repo_id):
25
 
26
  # Predict the image
27
  def predict(pilimg):
28
- #source = pilimg
29
- source = pilimg.resize(newsize)
30
  # x = np.asarray(pilimg)
31
  # print(x.shape)
32
 
 
4
  import gradio as gr
5
  from huggingface_hub import snapshot_download
6
  import os
 
 
 
7
 
8
  model_path = "best_int8_openvino_model"
9
 
 
22
 
23
  # Predict the image
24
  def predict(pilimg):
25
+ source = pilimg
 
26
  # x = np.asarray(pilimg)
27
  # print(x.shape)
28