Spaces:
Sleeping
Sleeping
argument of type 'bool' is not iterable
Browse files
app.py
CHANGED
|
@@ -19,8 +19,8 @@ def post_process(text):
|
|
| 19 |
return text
|
| 20 |
|
| 21 |
|
| 22 |
-
def set_example_image(example: list)
|
| 23 |
-
return
|
| 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):
|