Commit ·
1d6c9fa
1
Parent(s): c25a556
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,7 +67,7 @@ def gen_pred(img, model=seg_model):
|
|
| 67 |
pred = model.predict(img)
|
| 68 |
pred = np.squeeze(pred, axis=0)
|
| 69 |
fig = plt.figure(figsize=(10, 7))
|
| 70 |
-
fig.add_subplot(rows, columns, 1)
|
| 71 |
plt.imshow(pred, interpolation='catrom')
|
| 72 |
plt.axis('off')
|
| 73 |
plt.title("Prediction")
|
|
|
|
| 67 |
pred = model.predict(img)
|
| 68 |
pred = np.squeeze(pred, axis=0)
|
| 69 |
fig = plt.figure(figsize=(10, 7))
|
| 70 |
+
fig.add_subplot(rows=1, columns=1, 1)
|
| 71 |
plt.imshow(pred, interpolation='catrom')
|
| 72 |
plt.axis('off')
|
| 73 |
plt.title("Prediction")
|