Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def generate_text(input_text, history):
|
|
18 |
else:
|
19 |
for i in history:
|
20 |
input_text_with_history += i[0] + "\n" + i[1]
|
21 |
-
input_text_with_history
|
22 |
|
23 |
print("new input", input_text_with_history)
|
24 |
output = llm(, max_tokens=1024, stop=["Q:", "\n"], echo=True)
|
|
|
18 |
else:
|
19 |
for i in history:
|
20 |
input_text_with_history += i[0] + "\n" + i[1]
|
21 |
+
input_text_with_history += f"Q: {input_text} \n A:"
|
22 |
|
23 |
print("new input", input_text_with_history)
|
24 |
output = llm(, max_tokens=1024, stop=["Q:", "\n"], echo=True)
|