Spaces:
Runtime error
Runtime error
Vision-CAIR
commited on
Commit
β’
d1a6bf6
1
Parent(s):
9e2b81e
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ def gradio_ask(user_message, chatbot, chat_state):
|
|
88 |
|
89 |
|
90 |
def gradio_answer(chatbot, chat_state, img_list, num_beams, temperature):
|
91 |
-
llm_message = chat.answer(conv=chat_state, img_list=img_list, max_new_tokens=1000, num_beams=1, temperature=temperature)[0]
|
92 |
chatbot[-1][1] = llm_message
|
93 |
return chatbot, chat_state, img_list
|
94 |
|
|
|
88 |
|
89 |
|
90 |
def gradio_answer(chatbot, chat_state, img_list, num_beams, temperature):
|
91 |
+
llm_message = chat.answer(conv=chat_state, img_list=img_list, max_new_tokens=1000, num_beams=1, temperature=temperature, max_length=2000)[0]
|
92 |
chatbot[-1][1] = llm_message
|
93 |
return chatbot, chat_state, img_list
|
94 |
|