Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -231,9 +231,10 @@ def server(input: Inputs, output: Outputs, session: Session):
|
|
231 |
fig, ax = plt.subplots()
|
232 |
ax.text(0.5, 0.5, "Upload an image to see predictions", fontsize=12, ha="center")
|
233 |
ax.axis("off") # Hide axis
|
|
|
234 |
return fig
|
235 |
|
236 |
-
fig, axes = plt.subplots(1, 4,
|
237 |
|
238 |
# Extract the image data
|
239 |
#image_data = image.cpu().detach().numpy()
|
|
|
231 |
fig, ax = plt.subplots()
|
232 |
ax.text(0.5, 0.5, "Upload an image to see predictions", fontsize=12, ha="center")
|
233 |
ax.axis("off") # Hide axis
|
234 |
+
plt.tight_layout()
|
235 |
return fig
|
236 |
|
237 |
+
fig, axes = plt.subplots(1, 4, constrained_layout=True)
|
238 |
|
239 |
# Extract the image data
|
240 |
#image_data = image.cpu().detach().numpy()
|