Spaces:
Sleeping
Sleeping
ankur-bohra
commited on
Commit
•
8dac1b1
1
Parent(s):
9f4ab8c
Update app.py
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ def query(category, text):
|
|
114 |
question = f""
|
115 |
if len(formatted_prompt.messages) > 1:
|
116 |
question += f"**System:**\n{formatted_prompt.messages[0].content}"
|
117 |
-
question += f"\n\n**Human:**\n{formatted_prompt.messages[1].content}"
|
118 |
yield gr.Chatbot.update([[question, "Generating..."]])
|
119 |
|
120 |
result = chain.generate(
|
|
|
114 |
question = f""
|
115 |
if len(formatted_prompt.messages) > 1:
|
116 |
question += f"**System:**\n{formatted_prompt.messages[0].content}"
|
117 |
+
question += f"\n\n**Human:**\n{formatted_prompt.messages[-1].content}"
|
118 |
yield gr.Chatbot.update([[question, "Generating..."]])
|
119 |
|
120 |
result = chain.generate(
|