oscmansan commited on
Commit
26beed3
1 Parent(s): f12403d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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")