Update app.py
Browse files
app.py
CHANGED
|
@@ -250,7 +250,7 @@ def update_image(filepath):
|
|
| 250 |
with gr.Blocks(title = "Hello",
|
| 251 |
css=".gradio-container {background:purple;}") as demo:
|
| 252 |
|
| 253 |
-
filepath = ""
|
| 254 |
with gr.Row():
|
| 255 |
with gr.Column(scale=2):
|
| 256 |
gr.HTML("""<div style="font-family:'Times New Roman', 'Serif'; font-size:16pt; font-weight:bold; text-align:center; color:white;">Cellpose-SAM for cellular segmentation</div>""")
|
|
@@ -261,7 +261,7 @@ with gr.Blocks(title = "Hello",
|
|
| 261 |
|
| 262 |
with gr.Row():
|
| 263 |
with gr.Column(scale=1):
|
| 264 |
-
|
| 265 |
resize = gr.Number(label = 'max resize', value = 1000)
|
| 266 |
|
| 267 |
with gr.Column(scale=1):
|
|
|
|
| 250 |
with gr.Blocks(title = "Hello",
|
| 251 |
css=".gradio-container {background:purple;}") as demo:
|
| 252 |
|
| 253 |
+
#filepath = ""
|
| 254 |
with gr.Row():
|
| 255 |
with gr.Column(scale=2):
|
| 256 |
gr.HTML("""<div style="font-family:'Times New Roman', 'Serif'; font-size:16pt; font-weight:bold; text-align:center; color:white;">Cellpose-SAM for cellular segmentation</div>""")
|
|
|
|
| 261 |
|
| 262 |
with gr.Row():
|
| 263 |
with gr.Column(scale=1):
|
| 264 |
+
filepath = gr.UploadButton("Upload (png, jpg, tif etc)", visible=True, file_count = "single")
|
| 265 |
resize = gr.Number(label = 'max resize', value = 1000)
|
| 266 |
|
| 267 |
with gr.Column(scale=1):
|