erhanmeydan commited on
Commit
cb9b2cc
·
verified ·
1 Parent(s): 07551c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=3000, # 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
  )
 
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
  )