Spaces:
BAAI
/
Runtime error

ryanzhangfan commited on
Commit
116a3d4
1 Parent(s): 5afdeb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -131,9 +131,9 @@ def vision_language_understanding(image, text):
131
 
132
  # Prepare hyperparameters
133
  GENERATION_CONFIG = GenerationConfig(
134
- pad_token_id=chat_tokenizer.pad_token_id,
135
- bos_token_id=chat_tokenizer.bos_token_id,
136
- eos_token_id=chat_tokenizer.eos_token_id,
137
  max_new_tokens=320,
138
  )
139
 
 
131
 
132
  # Prepare hyperparameters
133
  GENERATION_CONFIG = GenerationConfig(
134
+ pad_token_id=tokenizer.pad_token_id,
135
+ bos_token_id=tokenizer.bos_token_id,
136
+ eos_token_id=tokenizer.eos_token_id,
137
  max_new_tokens=320,
138
  )
139