Plsek commited on
Commit
56359ab
·
1 Parent(s): ddce24a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ def plot_image(image_array, scale):
22
  plt.imshow(image_array, origin="lower")
23
  plt.gca().add_patch(Rectangle((x0, x0), scale*128, scale*128, linewidth=1, edgecolor='w', facecolor='none'))
24
  plt.axis('off')
25
- st.pyplot()
26
 
27
  # Define function to plot the prediction
28
  def plot_prediction(image_array, pred):
@@ -35,7 +35,7 @@ def plot_prediction(image_array, pred):
35
  plt.subplot(1, 2, 2)
36
  plt.imshow(pred, origin="lower")
37
  plt.axis('off')
38
- st.pyplot()
39
 
40
  def cut(data0, wcs0, scale=1):
41
  shape = data0.shape[0]
 
22
  plt.imshow(image_array, origin="lower")
23
  plt.gca().add_patch(Rectangle((x0, x0), scale*128, scale*128, linewidth=1, edgecolor='w', facecolor='none'))
24
  plt.axis('off')
25
+ st.pyplot(width=400)
26
 
27
  # Define function to plot the prediction
28
  def plot_prediction(image_array, pred):
 
35
  plt.subplot(1, 2, 2)
36
  plt.imshow(pred, origin="lower")
37
  plt.axis('off')
38
+ st.pyplot(width=800)
39
 
40
  def cut(data0, wcs0, scale=1):
41
  shape = data0.shape[0]