Spaces:
Running
Running
dennistrujillo
commited on
Commit
·
03725aa
1
Parent(s):
1857330
Changed title and label names
Browse files
app.py
CHANGED
@@ -126,41 +126,14 @@ def echo(x_min, y_min, x_max, y_max):
|
|
126 |
iface = gr.Interface(
|
127 |
fn=process_images,
|
128 |
inputs=[
|
129 |
-
ImagePrompter(label="
|
130 |
],
|
131 |
outputs=[
|
132 |
-
gr.Image(type="pil", label="Processed Image")
|
133 |
],
|
134 |
-
title="
|
135 |
description="Upload an image and select regions of interest for processing."
|
136 |
)
|
137 |
|
138 |
# Launch the interface
|
139 |
iface.launch()
|
140 |
-
|
141 |
-
'''iface= gr.Interface(fn=process_images,
|
142 |
-
inputs=[lambda prompts: (prompts["image"], prompts["points"]),
|
143 |
-
ImagePrompter(show_label=False)],
|
144 |
-
outputs="plot")'''
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
'''iface = gr.Interface(
|
149 |
-
lambda prompts: (prompts["image"], prompts["points"]),
|
150 |
-
ImagePrompter(show_label=False),
|
151 |
-
[gr.Image(show_label=False), gr.Dataframe(label="Points")],
|
152 |
-
)
|
153 |
-
'''
|
154 |
-
|
155 |
-
|
156 |
-
'''gr.Interface(
|
157 |
-
fn=process_images,
|
158 |
-
inputs=[
|
159 |
-
gr.File(label="MRI Slice (DICOM, PNG, etc.)"),
|
160 |
-
gr.Number(label="X min"),
|
161 |
-
gr.Number(label="Y min"),
|
162 |
-
gr.Number(label="X max"),
|
163 |
-
gr.Number(label="Y max")
|
164 |
-
],
|
165 |
-
outputs="plot"
|
166 |
-
)'''
|
|
|
126 |
iface = gr.Interface(
|
127 |
fn=process_images,
|
128 |
inputs=[
|
129 |
+
ImagePrompter(label="Image")
|
130 |
],
|
131 |
outputs=[
|
132 |
+
gr.Image(type="pil", label="Processed Image")
|
133 |
],
|
134 |
+
title="ROI Selection with MEDSAM",
|
135 |
description="Upload an image and select regions of interest for processing."
|
136 |
)
|
137 |
|
138 |
# Launch the interface
|
139 |
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|