renderfy commited on
Commit
16918d3
·
verified ·
1 Parent(s): b32dca6

Upload streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +4 -2
streamlit_app.py CHANGED
@@ -400,10 +400,12 @@ if pack_bytes_demo:
400
  ratio=float(preview_ratio))
401
  except Exception:
402
  padded_bytes = None
 
 
403
  show_tile_card_display_download(
404
  col_pad, "Sample Variation 2 Preview",
405
- display_bytes=padded_bytes or pack_bytes_demo,
406
- download_bytes=padded_bytes or pack_bytes_demo,
407
  filename_stub="padded_ui", key_prefix="pre"
408
  )
409
 
 
400
  ratio=float(preview_ratio))
401
  except Exception:
402
  padded_bytes = None
403
+
404
+ model_bytes_demo = demo_files.get("model.jpg") or input_bytes
405
  show_tile_card_display_download(
406
  col_pad, "Sample Variation 2 Preview",
407
+ display_bytes=padded_bytes or model_bytes_demo,
408
+ download_bytes=padded_bytes or model_bytes_demo,
409
  filename_stub="padded_ui", key_prefix="pre"
410
  )
411