aagoluoglu commited on
Commit
1c151cf
·
verified ·
1 Parent(s): 01941ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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, figsize=(20, 20), constrained_layout=True)
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()