dennistrujillo commited on
Commit
03725aa
·
1 Parent(s): 1857330

Changed title and label names

Browse files
Files changed (1) hide show
  1. app.py +3 -30
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="Select ROIs") # Custom image prompter for selecting regions of interest
130
  ],
131
  outputs=[
132
- gr.Image(type="pil", label="Processed Image"), # Image output
133
  ],
134
- title="Image Processing with Custom Prompts",
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()