Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -60,8 +60,7 @@ def generate(
|
|
60 |
#Prepend the entire chat history to the message with new lines between each message
|
61 |
for user, assistant in chat_history:
|
62 |
historical_text += f"\n{user}\n{assistant}"
|
63 |
-
|
64 |
-
message = historical_text + f"\n{message}"
|
65 |
if len(historical_text) > 0:
|
66 |
message = historical_text + f"\n{message}"
|
67 |
input_ids = tokenizer([message], return_tensors="pt").input_ids
|
|
|
60 |
#Prepend the entire chat history to the message with new lines between each message
|
61 |
for user, assistant in chat_history:
|
62 |
historical_text += f"\n{user}\n{assistant}"
|
63 |
+
|
|
|
64 |
if len(historical_text) > 0:
|
65 |
message = historical_text + f"\n{message}"
|
66 |
input_ids = tokenizer([message], return_tensors="pt").input_ids
|