Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
@@ -244,18 +244,19 @@ class ProstateSegmentationAlgorithm(SegmentationAlgorithm):
|
|
244 |
|
245 |
|
246 |
def predict(input_file):
|
|
|
247 |
print(input_file)
|
248 |
-
return
|
249 |
|
250 |
|
251 |
demo = gr.Interface(
|
252 |
fn=predict,
|
253 |
inputs=gr.File(file_count="single", file_types=[".mha", ".nii.gz", ".nii"]),
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
outputs=gr.Label(num_top_classes=3),
|
259 |
)
|
260 |
|
261 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
244 |
|
245 |
|
246 |
def predict(input_file):
|
247 |
+
print("Making prediction")
|
248 |
print(input_file)
|
249 |
+
return input_file
|
250 |
|
251 |
|
252 |
demo = gr.Interface(
|
253 |
fn=predict,
|
254 |
inputs=gr.File(file_count="single", file_types=[".mha", ".nii.gz", ".nii"]),
|
255 |
+
outputs=(
|
256 |
+
gr.File()
|
257 |
+
)
|
258 |
+
,
|
259 |
+
# outputs=gr.Label(num_top_classes=3),
|
260 |
)
|
261 |
|
262 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|