hangzhang-nlp commited on
Commit
4671ce0
1 Parent(s): 12c174c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -134,7 +134,7 @@ def gradio_answer(chatbot, chat_state, img_list, num_beams, temperature):
134
  num_beams=1,
135
  temperature=temperature,
136
  max_new_tokens=240,
137
- max_length=512)[0]
138
  chatbot[-1][1] = llm_message
139
  print(chat_state.get_prompt())
140
  print(chat_state)
 
134
  num_beams=1,
135
  temperature=temperature,
136
  max_new_tokens=240,
137
+ max_length=511)[0]
138
  chatbot[-1][1] = llm_message
139
  print(chat_state.get_prompt())
140
  print(chat_state)