Spaces:
Running
on
Zero
Running
on
Zero
visheratin
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def answer_question(image, question, max_crops, num_tokens, sample, temperature,
|
|
61 |
"eos_token_id": processor.tokenizer.eos_token_id,
|
62 |
"pad_token_id": processor.tokenizer.eos_token_id,
|
63 |
"temperature": temperature,
|
64 |
-
"
|
65 |
"top_k": top_k,
|
66 |
}
|
67 |
thread = Thread(target=model.generate, kwargs=generation_kwargs)
|
|
|
61 |
"eos_token_id": processor.tokenizer.eos_token_id,
|
62 |
"pad_token_id": processor.tokenizer.eos_token_id,
|
63 |
"temperature": temperature,
|
64 |
+
"do_sample": sample,
|
65 |
"top_k": top_k,
|
66 |
}
|
67 |
thread = Thread(target=model.generate, kwargs=generation_kwargs)
|