Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files- app.py +7 -1
- czi_to_png.py +7 -1
app.py
CHANGED
|
@@ -208,12 +208,18 @@ def _build_gradio_app():
|
|
| 208 |
grayscale_css = """
|
| 209 |
.gradio-container { background: #ffffff; color: #000000; }
|
| 210 |
.gallery img, .grid-wrap img { filter: grayscale(100%); background: #000000; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
"""
|
| 212 |
|
| 213 |
with gr.Blocks(title="CZI to PNG Converter", css=grayscale_css) as demo:
|
| 214 |
gr.Markdown("# CZI to PNG Converter\nUpload a `.czi` file to get a ZIP of black-and-white PNGs (one per channel/Z plane), with absolute pixel intensities preserved.")
|
| 215 |
inp = gr.File(label="CZI file", file_types=[".czi"])
|
| 216 |
-
btn = gr.Button("Convert", variant="primary")
|
| 217 |
out_msg = gr.Textbox(label="Status")
|
| 218 |
out_gallery = gr.Gallery(label="Preview (black & white)", columns=4, height="auto")
|
| 219 |
out_file = gr.File(label="Download PNGs (ZIP)")
|
|
|
|
| 208 |
grayscale_css = """
|
| 209 |
.gradio-container { background: #ffffff; color: #000000; }
|
| 210 |
.gallery img, .grid-wrap img { filter: grayscale(100%); background: #000000; }
|
| 211 |
+
button.primary, .primary button, #convert-btn, #convert-btn button {
|
| 212 |
+
background: #000000 !important;
|
| 213 |
+
background-image: none !important;
|
| 214 |
+
color: #ffffff !important;
|
| 215 |
+
border-color: #000000 !important;
|
| 216 |
+
}
|
| 217 |
"""
|
| 218 |
|
| 219 |
with gr.Blocks(title="CZI to PNG Converter", css=grayscale_css) as demo:
|
| 220 |
gr.Markdown("# CZI to PNG Converter\nUpload a `.czi` file to get a ZIP of black-and-white PNGs (one per channel/Z plane), with absolute pixel intensities preserved.")
|
| 221 |
inp = gr.File(label="CZI file", file_types=[".czi"])
|
| 222 |
+
btn = gr.Button("Convert", variant="primary", elem_id="convert-btn")
|
| 223 |
out_msg = gr.Textbox(label="Status")
|
| 224 |
out_gallery = gr.Gallery(label="Preview (black & white)", columns=4, height="auto")
|
| 225 |
out_file = gr.File(label="Download PNGs (ZIP)")
|
czi_to_png.py
CHANGED
|
@@ -208,12 +208,18 @@ def _build_gradio_app():
|
|
| 208 |
grayscale_css = """
|
| 209 |
.gradio-container { background: #ffffff; color: #000000; }
|
| 210 |
.gallery img, .grid-wrap img { filter: grayscale(100%); background: #000000; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
"""
|
| 212 |
|
| 213 |
with gr.Blocks(title="CZI to PNG Converter", css=grayscale_css) as demo:
|
| 214 |
gr.Markdown("# CZI to PNG Converter\nUpload a `.czi` file to get a ZIP of black-and-white PNGs (one per channel/Z plane), with absolute pixel intensities preserved.")
|
| 215 |
inp = gr.File(label="CZI file", file_types=[".czi"])
|
| 216 |
-
btn = gr.Button("Convert", variant="primary")
|
| 217 |
out_msg = gr.Textbox(label="Status")
|
| 218 |
out_gallery = gr.Gallery(label="Preview (black & white)", columns=4, height="auto")
|
| 219 |
out_file = gr.File(label="Download PNGs (ZIP)")
|
|
|
|
| 208 |
grayscale_css = """
|
| 209 |
.gradio-container { background: #ffffff; color: #000000; }
|
| 210 |
.gallery img, .grid-wrap img { filter: grayscale(100%); background: #000000; }
|
| 211 |
+
button.primary, .primary button, #convert-btn, #convert-btn button {
|
| 212 |
+
background: #000000 !important;
|
| 213 |
+
background-image: none !important;
|
| 214 |
+
color: #ffffff !important;
|
| 215 |
+
border-color: #000000 !important;
|
| 216 |
+
}
|
| 217 |
"""
|
| 218 |
|
| 219 |
with gr.Blocks(title="CZI to PNG Converter", css=grayscale_css) as demo:
|
| 220 |
gr.Markdown("# CZI to PNG Converter\nUpload a `.czi` file to get a ZIP of black-and-white PNGs (one per channel/Z plane), with absolute pixel intensities preserved.")
|
| 221 |
inp = gr.File(label="CZI file", file_types=[".czi"])
|
| 222 |
+
btn = gr.Button("Convert", variant="primary", elem_id="convert-btn")
|
| 223 |
out_msg = gr.Textbox(label="Status")
|
| 224 |
out_gallery = gr.Gallery(label="Preview (black & white)", columns=4, height="auto")
|
| 225 |
out_file = gr.File(label="Download PNGs (ZIP)")
|