Vision-CAIR
commited on
Commit
•
86539ff
1
Parent(s):
81ac86c
Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ def gradio_ask(user_message, chatbot, chat_state):
|
|
91 |
|
92 |
|
93 |
def gradio_answer(chatbot, chat_state, img_list, num_beams, temperature):
|
94 |
-
llm_message = chat.answer(conv=chat_state, img_list=img_list, max_new_tokens=1000, num_beams=
|
95 |
chatbot[-1][1] = llm_message
|
96 |
return chatbot, chat_state, img_list
|
97 |
|
|
|
91 |
|
92 |
|
93 |
def gradio_answer(chatbot, chat_state, img_list, num_beams, temperature):
|
94 |
+
llm_message = chat.answer(conv=chat_state, img_list=img_list, max_new_tokens=1000, num_beams=1, temperature=temperature)[0]
|
95 |
chatbot[-1][1] = llm_message
|
96 |
return chatbot, chat_state, img_list
|
97 |
|