Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ history = []
|
|
| 13 |
def generate_text(input_text, history):
|
| 14 |
print("history ",history)
|
| 15 |
print("input ", input_text)
|
| 16 |
-
full_conversation = f"{
|
| 17 |
print("full convo", full_conversation)
|
| 18 |
|
| 19 |
output = llm(full_conversation, max_tokens=1024, stop=["Q:", "\n"], echo=True)
|
|
|
|
| 13 |
def generate_text(input_text, history):
|
| 14 |
print("history ",history)
|
| 15 |
print("input ", input_text)
|
| 16 |
+
full_conversation = f"{full_conversation[-1]} Q: {input_text} \n A:"
|
| 17 |
print("full convo", full_conversation)
|
| 18 |
|
| 19 |
output = llm(full_conversation, max_tokens=1024, stop=["Q:", "\n"], echo=True)
|