Spaces:
Sleeping
Sleeping
Commit
·
28fd108
1
Parent(s):
5dc340d
change plot fig size
Browse files
app.py
CHANGED
@@ -209,7 +209,7 @@ def predict(image_path, model=model, category_names=cat_to_name, topk=5):
|
|
209 |
# Plot Functionality
|
210 |
|
211 |
image = Image.open(image_path)
|
212 |
-
fig, (ax1, ax2) = plt.subplots(
|
213 |
ax1.imshow(image)
|
214 |
ax1.axis("off")
|
215 |
ax2.barh(np.arange(len(top_labels)), percentages)
|
|
|
209 |
# Plot Functionality
|
210 |
|
211 |
image = Image.open(image_path)
|
212 |
+
fig, (ax1, ax2) = plt.subplots(ncols=2)
|
213 |
ax1.imshow(image)
|
214 |
ax1.axis("off")
|
215 |
ax2.barh(np.arange(len(top_labels)), percentages)
|