Ravi21 commited on
Commit
06ea84b
·
1 Parent(s): a190a6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ def predict(data):
32
  # Create the Gradio interface
33
  iface = gr.Interface(
34
  fn=predict,
35
- inputs=gr.inputs.Data(type="json"),
36
  outputs=gr.outputs.Label(num_top_classes=3),
37
  live=True,
38
  examples=[
@@ -78,7 +78,7 @@ def predict(data):
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=[
 
32
  # Create the Gradio interface
33
  iface = gr.Interface(
34
  fn=predict,
35
+ inputs=gr.inputs.JSON(),
36
  outputs=gr.outputs.Label(num_top_classes=3),
37
  live=True,
38
  examples=[
 
78
  # Create the Gradio interface
79
  iface = gr.Interface(
80
  fn=predict,
81
+ inputs=gr.inputs.JSON(),
82
  outputs=gr.outputs.Label(num_top_classes=3),
83
  live=True,
84
  examples=[