Spaces:
Build error
Build error
simayhosmeyve
commited on
Commit
•
77be170
1
Parent(s):
2216322
Update app.py
Browse files
app.py
CHANGED
@@ -518,7 +518,7 @@ def result(Input,Choice):
|
|
518 |
size1 = Input.shape[1]
|
519 |
Input = cv2.resize(Input, (256,256), interpolation = cv2.INTER_AREA)
|
520 |
Input = cv2.cvtColor(Input , cv2.COLOR_BGR2RGB)
|
521 |
-
Input = np.array(Input).reshape(1,256,256,
|
522 |
prediction = pre_trained2(Input,training=True)
|
523 |
Input = prediction[0]
|
524 |
Input = (Input+1)*127.5
|
|
|
518 |
size1 = Input.shape[1]
|
519 |
Input = cv2.resize(Input, (256,256), interpolation = cv2.INTER_AREA)
|
520 |
Input = cv2.cvtColor(Input , cv2.COLOR_BGR2RGB)
|
521 |
+
Input = np.array(Input).reshape(1,256,256,1)
|
522 |
prediction = pre_trained2(Input,training=True)
|
523 |
Input = prediction[0]
|
524 |
Input = (Input+1)*127.5
|