Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def answer_question(image, question):
|
|
26 |
with torch.no_grad():
|
27 |
output = model.generate(
|
28 |
**inputs,
|
29 |
-
max_new_tokens=
|
30 |
temperature=0.7, # Yaratıcılığı biraz artırmak için
|
31 |
do_sample=True # Örnekleme ile daha çeşitli cevaplar
|
32 |
)
|
|
|
26 |
with torch.no_grad():
|
27 |
output = model.generate(
|
28 |
**inputs,
|
29 |
+
max_new_tokens=500, # Daha uzun cevaplar için artırıldı
|
30 |
temperature=0.7, # Yaratıcılığı biraz artırmak için
|
31 |
do_sample=True # Örnekleme ile daha çeşitli cevaplar
|
32 |
)
|