Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,6 +30,8 @@ def predict(image: Image.Image, question: str) -> str:
|
|
| 30 |
return answer
|
| 31 |
|
| 32 |
|
|
|
|
|
|
|
| 33 |
image = gr.components.Image(type='pil', label="Image")
|
| 34 |
question = gr.components.Textbox(info="Ask a visual question or leave empty for captioning", placeholder="What is this?", label="Question")
|
| 35 |
answer = gr.components.Textbox(label="Answer")
|
|
|
|
| 30 |
return answer
|
| 31 |
|
| 32 |
|
| 33 |
+
predict(image=Image.new('RGB', (224, 224)), question="")
|
| 34 |
+
|
| 35 |
image = gr.components.Image(type='pil', label="Image")
|
| 36 |
question = gr.components.Textbox(info="Ask a visual question or leave empty for captioning", placeholder="What is this?", label="Question")
|
| 37 |
answer = gr.components.Textbox(label="Answer")
|