xxx1 commited on
Commit
ce95a1e
1 Parent(s): e0bd467

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -39,7 +39,7 @@ with gr.Blocks(
39
  with gr.Row():
40
 
41
  with gr.Column(scale=1):
42
- caption_output = gr.Textbox(lines=1, label="VQA Output")
43
  chat_input = gr.Textbox(lines=1, label="VQA Input")
44
  chat_input.submit(
45
  inference_chat,
@@ -49,7 +49,7 @@ with gr.Blocks(
49
  ],
50
  [ caption_output],
51
  )
52
- caption_output = gr.Textbox(lines=1, label="VQA Output")
53
  with gr.Row():
54
  clear_button = gr.Button(value="Clear", interactive=True)
55
  clear_button.click(
@@ -70,6 +70,7 @@ with gr.Blocks(
70
  ],
71
  [caption_output],
72
  )
 
73
 
74
 
75
  image_input.change(
 
39
  with gr.Row():
40
 
41
  with gr.Column(scale=1):
42
+ caption_output = None
43
  chat_input = gr.Textbox(lines=1, label="VQA Input")
44
  chat_input.submit(
45
  inference_chat,
 
49
  ],
50
  [ caption_output],
51
  )
52
+
53
  with gr.Row():
54
  clear_button = gr.Button(value="Clear", interactive=True)
55
  clear_button.click(
 
70
  ],
71
  [caption_output],
72
  )
73
+ caption_output = gr.Textbox(lines=1, label="VQA Output")
74
 
75
 
76
  image_input.change(