howard-hou commited on
Commit
d9a5ffa
1 Parent(s): f5a060d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -101,10 +101,10 @@ examples = [
101
  ]
102
  ]
103
  def test(image, question):
104
- print(image.shape, question)
105
  return question
106
  demo = gr.Interface(fn=test,
107
- inputs=["image", "text"],
108
  outputs="text",
109
  examples=examples,
110
  title=title,
 
101
  ]
102
  ]
103
  def test(image, question):
104
+ print(image, question)
105
  return question
106
  demo = gr.Interface(fn=test,
107
+ inputs=[gr.Image(type='pil'), "text"],
108
  outputs="text",
109
  examples=examples,
110
  title=title,