Spaces:
Running
Running
kargaranamir
commited on
Commit
•
46f83dd
1
Parent(s):
736227f
v3 to v4.
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ import numpy as np
|
|
5 |
import matplotlib.pyplot as plt
|
6 |
import io
|
7 |
|
8 |
-
def inference(
|
9 |
-
color_image = cv2.imread(
|
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
|
|
|
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)
|