Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def process(input_image, prompt):
|
|
12 |
text_input = txt_processors["eval"](prompt)
|
13 |
sample = {"image": image, "text_input": [text_input]}
|
14 |
|
15 |
-
output = model.forward_qa(samples=sample)
|
16 |
pred_answers = output[0]
|
17 |
|
18 |
return pred_answer
|
|
|
12 |
text_input = txt_processors["eval"](prompt)
|
13 |
sample = {"image": image, "text_input": [text_input]}
|
14 |
|
15 |
+
output = model.forward_qa(samples=sample, num_captions=50)
|
16 |
pred_answers = output[0]
|
17 |
|
18 |
return pred_answer
|