Ahmed235 commited on
Commit
727c7a4
·
verified ·
1 Parent(s): 3e21ddd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def predict_image(image):
41
  return json.dumps(prediction_dict, indent=2)
42
 
43
  # Create the interface
44
- input_interface = gr.Image()
45
  output_interface = "json"
46
 
47
  iface = gr.Interface(
 
41
  return json.dumps(prediction_dict, indent=2)
42
 
43
  # Create the interface
44
+ input_interface = gr.Image(type = "pil")
45
  output_interface = "json"
46
 
47
  iface = gr.Interface(