Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def get_format_response(image,question,selected_model):
|
|
22 |
return answer
|
23 |
else:
|
24 |
outputs = model.generate(**encoding)
|
25 |
-
answer = processor.decode(
|
26 |
return answer
|
27 |
|
28 |
|
|
|
22 |
return answer
|
23 |
else:
|
24 |
outputs = model.generate(**encoding)
|
25 |
+
answer = processor.decode(outputs[0], skip_special_tokens=True)
|
26 |
return answer
|
27 |
|
28 |
|