Spaces:
Sleeping
Sleeping
KasKniesmeijer
commited on
Commit
·
59ee00b
1
Parent(s):
39fa4f0
changed max tokens to 400
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def answer_question(image, question):
|
|
58 |
|
59 |
# Generate the answer
|
60 |
try:
|
61 |
-
outputs = model.generate(**inputs, max_new_tokens=
|
62 |
answer = processor.decode(outputs[0], skip_special_tokens=True)
|
63 |
return answer
|
64 |
except Exception as e:
|
|
|
58 |
|
59 |
# Generate the answer
|
60 |
try:
|
61 |
+
outputs = model.generate(**inputs, max_new_tokens=400)
|
62 |
answer = processor.decode(outputs[0], skip_special_tokens=True)
|
63 |
return answer
|
64 |
except Exception as e:
|