Spaces:
Runtime error
Runtime error
Commit
·
35339b8
1
Parent(s):
c08b383
fixed output error llama
Browse files
app.py
CHANGED
@@ -184,7 +184,7 @@ def llama_strategies_respond(strategy, task_name, task_ling_ent, message, chat_h
|
|
184 |
bot_message = bot_message.replace(formatted_prompt, '')
|
185 |
# print(bot_message)
|
186 |
|
187 |
-
chat_history.
|
188 |
time.sleep(2)
|
189 |
return task_name, "", chat_history
|
190 |
|
@@ -337,10 +337,10 @@ def interface():
|
|
337 |
outputs=[task_prompt, gpt_S3_chatbot])
|
338 |
|
339 |
# Event Handler for LLaMA Chatbot POS/Chunk
|
340 |
-
task_btn.click(llama_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, llama_S1_chatbot],
|
341 |
-
|
342 |
-
task_btn.click(llama_strategies_respond, inputs=[strategy2, task, task_linguistic_entities, task_prompt, llama_S2_chatbot],
|
343 |
-
|
344 |
task_btn.click(llama_strategies_respond, inputs=[strategy3, task, task_linguistic_entities, task_prompt, llama_S3_chatbot],
|
345 |
outputs=[task, task_prompt, llama_S3_chatbot])
|
346 |
|
|
|
184 |
bot_message = bot_message.replace(formatted_prompt, '')
|
185 |
# print(bot_message)
|
186 |
|
187 |
+
chat_history.insert(0, (formatted_prompt, bot_message))
|
188 |
time.sleep(2)
|
189 |
return task_name, "", chat_history
|
190 |
|
|
|
337 |
outputs=[task_prompt, gpt_S3_chatbot])
|
338 |
|
339 |
# Event Handler for LLaMA Chatbot POS/Chunk
|
340 |
+
# task_btn.click(llama_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, llama_S1_chatbot],
|
341 |
+
# outputs=[task, task_prompt, llama_S1_chatbot])
|
342 |
+
# task_btn.click(llama_strategies_respond, inputs=[strategy2, task, task_linguistic_entities, task_prompt, llama_S2_chatbot],
|
343 |
+
# outputs=[task, task_prompt, llama_S2_chatbot])
|
344 |
task_btn.click(llama_strategies_respond, inputs=[strategy3, task, task_linguistic_entities, task_prompt, llama_S3_chatbot],
|
345 |
outputs=[task, task_prompt, llama_S3_chatbot])
|
346 |
|