Spaces:
Sleeping
Sleeping
howard-hou
commited on
Commit
•
d9a5ffa
1
Parent(s):
f5a060d
Update app.py
Browse files
app.py
CHANGED
@@ -101,10 +101,10 @@ examples = [
|
|
101 |
]
|
102 |
]
|
103 |
def test(image, question):
|
104 |
-
print(image
|
105 |
return question
|
106 |
demo = gr.Interface(fn=test,
|
107 |
-
inputs=[
|
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,
|