soiz commited on
Commit
1abc14d
·
verified ·
1 Parent(s): 3080d23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,10 +20,10 @@ def generate_caption(image, question):
20
  interface = gr.Interface(
21
  fn=generate_caption, # キャプション生成関数
22
  inputs=[
23
- gr.inputs.Image(type="filepath", label="Input Image"), # 画像入力
24
- gr.inputs.Textbox(label="Question") # 質問入力
25
  ],
26
- outputs=gr.outputs.Textbox(label="Generated Caption") # キャプション出力
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
  # インターフェースを起動