Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,9 +41,10 @@ def generate_answer_git(processor, model, image, question):
|
|
41 |
|
42 |
generated_ids = model.generate(pixel_values=pixel_values, input_ids=input_ids, max_length=50, return_dict_in_generate=True, output_scores=True)
|
43 |
print(generated_ids.scores)
|
44 |
-
|
|
|
45 |
|
46 |
-
return
|
47 |
|
48 |
|
49 |
def generate_answer_blip(processor, model, image, question):
|
|
|
41 |
|
42 |
generated_ids = model.generate(pixel_values=pixel_values, input_ids=input_ids, max_length=50, return_dict_in_generate=True, output_scores=True)
|
43 |
print(generated_ids.scores)
|
44 |
+
print(generated_scores)
|
45 |
+
# generated_answer = processor.batch_decode(generated_ids, skip_special_tokens=True)
|
46 |
|
47 |
+
return 'haha'
|
48 |
|
49 |
|
50 |
def generate_answer_blip(processor, model, image, question):
|