kargaranamir commited on
Commit
46f83dd
1 Parent(s): 736227f
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,8 +5,8 @@ import numpy as np
5
  import matplotlib.pyplot as plt
6
  import io
7
 
8
- def inference(img_path, template, angle):
9
- color_image = cv2.imread(img_path, cv2.IMREAD_COLOR)
10
 
11
  HSV_image = cv2.cvtColor(color_image, cv2.COLOR_BGR2HSV)
12
  selected_harmomic_scheme = HarmonicScheme(str(template), int(angle))
@@ -51,4 +51,4 @@ gr.Interface(
51
  article=article,
52
  examples=examples,
53
  # css=css,
54
- ).launch(debug=False, enable_queue=True)
 
5
  import matplotlib.pyplot as plt
6
  import io
7
 
8
+ def inference(img, template, angle):
9
+ color_image = cv2.imread(img.name, cv2.IMREAD_COLOR)
10
 
11
  HSV_image = cv2.cvtColor(color_image, cv2.COLOR_BGR2HSV)
12
  selected_harmomic_scheme = HarmonicScheme(str(template), int(angle))
 
51
  article=article,
52
  examples=examples,
53
  # css=css,
54
+ ).launch(debug=False)