marta-marta commited on
Commit
a8ed2a8
·
1 Parent(s): 91f9afb
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -426,7 +426,7 @@ if st.checkbox("Generate Linear Interpolation"):
426
  figure_2[0:28, i * 28:(i + 1) * 28, ] = generated_image[:, :, -1]
427
  linear_predicted_interps.append(generated_image[:, :, -1])
428
 
429
- st.image(figure_2, width=600)
430
 
431
  # Code to display a gif
432
  # interpolate_gif(decoder_model_boxes, latent_point_1, latent_point_2)
@@ -459,7 +459,7 @@ if st.checkbox("Generate Linear Interpolation"):
459
 
460
  if st.checkbox("Generate STL Model"):
461
  # Generate the STL File
462
- time.sleep(5) # Add a delay to control the update rate
463
  linear_stl = convert_sdf_to_stl(linear_sdf, threshold_divisor=threshold_divisor_input)
464
 
465
  # Download the STL File
@@ -542,7 +542,7 @@ if st.checkbox("Generate Mesh Interpolation"):
542
  figure_3[i * 28:(i + 1) * 28, j * 28:(j + 1) * 28, ] = generated_image[:, :, -1]
543
  mesh_predicted_interps.append(generated_image[:, :, -1])
544
 
545
- st.image(figure_3, width=600)
546
 
547
  # Code for generating the STL file
548
  st.subheader("Create an STL file from the extruded image!")
@@ -573,7 +573,7 @@ if st.checkbox("Generate Mesh Interpolation"):
573
  str((mesh_sdf_max - abs(mesh_sdf_min)) / 2))
574
 
575
  if st.checkbox("Generate STL Model"):
576
- time.sleep(5) # Add a delay to control the update rate
577
  # Generate the STL File
578
  linear_stl = convert_sdf_to_stl(mesh_sdf, threshold_divisor=mesh_threshold_divisor_input)
579
 
 
426
  figure_2[0:28, i * 28:(i + 1) * 28, ] = generated_image[:, :, -1]
427
  linear_predicted_interps.append(generated_image[:, :, -1])
428
 
429
+ st.image(figure_2, width=600, key='linear_interpolation')
430
 
431
  # Code to display a gif
432
  # interpolate_gif(decoder_model_boxes, latent_point_1, latent_point_2)
 
459
 
460
  if st.checkbox("Generate STL Model"):
461
  # Generate the STL File
462
+ time.sleep(15) # Add a delay to control the update rate
463
  linear_stl = convert_sdf_to_stl(linear_sdf, threshold_divisor=threshold_divisor_input)
464
 
465
  # Download the STL File
 
542
  figure_3[i * 28:(i + 1) * 28, j * 28:(j + 1) * 28, ] = generated_image[:, :, -1]
543
  mesh_predicted_interps.append(generated_image[:, :, -1])
544
 
545
+ st.image(figure_3, width=600, key='mesh_interpolation')
546
 
547
  # Code for generating the STL file
548
  st.subheader("Create an STL file from the extruded image!")
 
573
  str((mesh_sdf_max - abs(mesh_sdf_min)) / 2))
574
 
575
  if st.checkbox("Generate STL Model"):
576
+ time.sleep(15) # Add a delay to control the update rate
577
  # Generate the STL File
578
  linear_stl = convert_sdf_to_stl(mesh_sdf, threshold_divisor=mesh_threshold_divisor_input)
579