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