osbm commited on
Commit
ce7a3fa
1 Parent(s): f7b3729

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -1
main.py CHANGED
@@ -6,7 +6,11 @@ def predict(img):
6
 
7
  demo = gr.Interface(
8
  fn=predict,
9
- inputs=gr.Image(type="pil"),
 
 
 
 
10
  outputs=gr.Label(num_top_classes=3),
11
  )
12
 
 
6
 
7
  demo = gr.Interface(
8
  fn=predict,
9
+ inputs=gr.File(file_count="single", file_types=[".mha", ".nii.gz", ".nii"]),
10
+ # outputs=(
11
+ # gr.File()
12
+ # )
13
+ # ,
14
  outputs=gr.Label(num_top_classes=3),
15
  )
16