prithivMLmods commited on
Commit
c678d8f
·
verified ·
1 Parent(s): 42bf962

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,8 +26,8 @@ from transformers import (
26
  from transformers.image_utils import load_image
27
 
28
  # Constants for text generation
29
- MAX_MAX_NEW_TOKENS = 2048
30
- DEFAULT_MAX_NEW_TOKENS = 1024
31
  MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
32
 
33
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
 
26
  from transformers.image_utils import load_image
27
 
28
  # Constants for text generation
29
+ MAX_MAX_NEW_TOKENS = 4096
30
+ DEFAULT_MAX_NEW_TOKENS = 2048
31
  MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
32
 
33
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")