Update app.py
Browse files
app.py
CHANGED
@@ -20,10 +20,10 @@ def generate_caption(image, question):
|
|
20 |
interface = gr.Interface(
|
21 |
fn=generate_caption, # γγ£γγ·γ§γ³ηζι’ζ°
|
22 |
inputs=[
|
23 |
-
gr.
|
24 |
-
gr.
|
25 |
],
|
26 |
-
outputs=gr.
|
27 |
)
|
28 |
|
29 |
# γ€γ³γΏγΌγγ§γΌγΉγθ΅·ε
|
|
|
20 |
interface = gr.Interface(
|
21 |
fn=generate_caption, # γγ£γγ·γ§γ³ηζι’ζ°
|
22 |
inputs=[
|
23 |
+
gr.Image(type="filepath", label="Input Image"), # η»εε
₯ε
|
24 |
+
gr.Textbox(label="Question") # θ³ͺεε
₯ε
|
25 |
],
|
26 |
+
outputs=gr.Textbox(label="Generated Caption") # γγ£γγ·γ§γ³εΊε
|
27 |
)
|
28 |
|
29 |
# γ€γ³γΏγΌγγ§γΌγΉγθ΅·ε
|