osbm commited on
Commit
7a23881
1 Parent(s): 4affc67

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -6
main.py CHANGED
@@ -244,18 +244,19 @@ class ProstateSegmentationAlgorithm(SegmentationAlgorithm):
244
 
245
 
246
  def predict(input_file):
 
247
  print(input_file)
248
- return "cat"
249
 
250
 
251
  demo = gr.Interface(
252
  fn=predict,
253
  inputs=gr.File(file_count="single", file_types=[".mha", ".nii.gz", ".nii"]),
254
- # outputs=(
255
- # gr.File()
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)