dsr commited on
Commit
b648b96
·
1 Parent(s): 599b2d5

argument of type 'bool' is not iterable

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,8 +19,8 @@ def post_process(text):
19
  return text
20
 
21
 
22
- def set_example_image(example: list) -> dict:
23
- return gr.Image.update(value=example[0])
24
 
25
 
26
  def predict(image, max_length=64, num_beams=4):
 
19
  return text
20
 
21
 
22
+ def set_example_image(example: list):
23
+ return example[0]
24
 
25
 
26
  def predict(image, max_length=64, num_beams=4):