mwalmsley commited on
Commit
1630cbe
·
1 Parent(s): d88e92f

layout tweak

Browse files
__pycache__/mae_timm_simplified.cpython-312.pyc ADDED
Binary file (10.8 kB). View file
 
app.py CHANGED
@@ -97,6 +97,8 @@ with gr.Blocks() as demo:
97
 
98
  For more details, see the workshop paper: Re-envisioning Euclid Galaxy Morphology: Identifying and Interpreting Features with Sparse Autoencoders, Wu & Walmsley, 2025, NeurIPS ML4Phys workshop.
99
 
 
 
100
  """)
101
 
102
  with gr.Row():
@@ -105,15 +107,19 @@ with gr.Blocks() as demo:
105
  reconstructed_output = gr.Image(type="pil", label="Reconstructed Image", height=224, width=224)
106
  outputs = [image_output, masked_output, reconstructed_output]
107
 
 
 
108
  with gr.Tab('Examples'):
 
 
 
 
 
109
  with gr.Row():
110
  # wraps if needed
111
  sample_images = [gr.Image(value=url, interactive=False, show_download_button=False, show_label=False, width=100, height=100) for url in sample_urls]
112
 
113
- with gr.Row():
114
- mask_ratio_slider = gr.Slider(minimum=0.0, maximum=0.99, value=0.9, step=0.01, label="Mask Ratio", min_width=400, scale=0)
115
- explain = gr.Markdown("Click image to update")
116
-
117
  for im in sample_images:
118
  im.select(predict, [im, mask_ratio_slider], outputs)
119
  # mask ratio slider does nothing, requires image click, since we don't know which image to use otherwise
 
97
 
98
  For more details, see the workshop paper: Re-envisioning Euclid Galaxy Morphology: Identifying and Interpreting Features with Sparse Autoencoders, Wu & Walmsley, 2025, NeurIPS ML4Phys workshop.
99
 
100
+ ----
101
+
102
  """)
103
 
104
  with gr.Row():
 
107
  reconstructed_output = gr.Image(type="pil", label="Reconstructed Image", height=224, width=224)
108
  outputs = [image_output, masked_output, reconstructed_output]
109
 
110
+ gr.Markdown('---')
111
+
112
  with gr.Tab('Examples'):
113
+
114
+ explain = gr.Markdown("Click image to update")
115
+ with gr.Column(scale=0):
116
+ mask_ratio_slider = gr.Slider(minimum=0.0, maximum=0.99, value=0.9, step=0.01, label="Mask Ratio", min_width=300, scale=0)
117
+
118
  with gr.Row():
119
  # wraps if needed
120
  sample_images = [gr.Image(value=url, interactive=False, show_download_button=False, show_label=False, width=100, height=100) for url in sample_urls]
121
 
122
+
 
 
 
123
  for im in sample_images:
124
  im.select(predict, [im, mask_ratio_slider], outputs)
125
  # mask ratio slider does nothing, requires image click, since we don't know which image to use otherwise