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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -6,6 +6,8 @@ from huggingface_hub import snapshot_download
6
  import os
7
  import cv2
8
 
 
 
9
  model_path = "best_int8_openvino_model"
10
 
11
  # Example paths for Gradio
@@ -23,7 +25,8 @@ def load_model(repo_id):
23
 
24
  # Predict the image
25
  def predict(pilimg):
26
- source = cv2.resize(pilimg, (640,640))
 
27
  # x = np.asarray(pilimg)
28
  # print(x.shape)
29
 
 
6
  import os
7
  import cv2
8
 
9
+ newsize = (640, 640)
10
+
11
  model_path = "best_int8_openvino_model"
12
 
13
  # Example paths for Gradio
 
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