Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def handle_image_submission(_chatbot, task_history, file) -> tuple:
|
|
50 |
history_item = ((file_path,), None)
|
51 |
_chatbot.append(history_item)
|
52 |
task_history.append(history_item)
|
53 |
-
return predict(_chatbot, task_history
|
54 |
|
55 |
|
56 |
def _load_model_tokenizer(args) -> tuple:
|
@@ -185,7 +185,7 @@ def regenerate(_chatbot, task_history) -> list:
|
|
185 |
_chatbot[-1] = (_chatbot[-1][0], None)
|
186 |
else:
|
187 |
_chatbot.append((chatbot_item[0], None))
|
188 |
-
return predict(_chatbot, task_history
|
189 |
|
190 |
def add_text(history, task_history, text) -> tuple:
|
191 |
task_text = text
|
|
|
50 |
history_item = ((file_path,), None)
|
51 |
_chatbot.append(history_item)
|
52 |
task_history.append(history_item)
|
53 |
+
return predict(_chatbot, task_history)
|
54 |
|
55 |
|
56 |
def _load_model_tokenizer(args) -> tuple:
|
|
|
185 |
_chatbot[-1] = (_chatbot[-1][0], None)
|
186 |
else:
|
187 |
_chatbot.append((chatbot_item[0], None))
|
188 |
+
return predict(_chatbot, task_history)
|
189 |
|
190 |
def add_text(history, task_history, text) -> tuple:
|
191 |
task_text = text
|