Ravi21 commited on
Commit
633e3bf
·
1 Parent(s): 91029b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def predict(data):
78
  # Create the Gradio interface
79
  iface = gr.Interface(
80
  fn=predict,
81
- inputs=gr.Interface.DataType.json,
82
  outputs=gr.outputs.Label(num_top_classes=3),
83
  live=True,
84
  examples=[
 
78
  # Create the Gradio interface
79
  iface = gr.Interface(
80
  fn=predict,
81
+ inputs=gr.inputs.Data(type="json"),,
82
  outputs=gr.outputs.Label(num_top_classes=3),
83
  live=True,
84
  examples=[