Spaces:
Sleeping
Sleeping
FantasticGNU
commited on
Commit
•
a207bbb
1
Parent(s):
81fa530
Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def predict(
|
|
134 |
plt.axis('off')
|
135 |
plt.savefig('output.png',bbox_inches='tight',pad_inches = 0)
|
136 |
|
137 |
-
target_size =
|
138 |
original_width, original_height = PILImage.open(image_path).size
|
139 |
if original_width > original_height:
|
140 |
new_width = target_size
|
|
|
134 |
plt.axis('off')
|
135 |
plt.savefig('output.png',bbox_inches='tight',pad_inches = 0)
|
136 |
|
137 |
+
target_size = 435
|
138 |
original_width, original_height = PILImage.open(image_path).size
|
139 |
if original_width > original_height:
|
140 |
new_width = target_size
|