Update app.py
Browse files
app.py
CHANGED
@@ -165,12 +165,12 @@ def generate(prompt, history):
|
|
165 |
# yield response
|
166 |
|
167 |
history.append((prompt,response))
|
168 |
-
chat_history.append([prompt, response])
|
169 |
if not isFirstRun:
|
170 |
-
chat_log_history.append({"user": prompt, "bot":
|
171 |
upload_to_google_drive()
|
172 |
else:
|
173 |
-
chat_log_history.append({"user": firstmsg, "bot":
|
|
|
174 |
context += response
|
175 |
|
176 |
print (context)
|
|
|
165 |
# yield response
|
166 |
|
167 |
history.append((prompt,response))
|
|
|
168 |
if not isFirstRun:
|
169 |
+
chat_log_history.append({"user": prompt, "bot": response})
|
170 |
upload_to_google_drive()
|
171 |
else:
|
172 |
+
chat_log_history.append({"user": firstmsg, "bot": reponse})
|
173 |
+
|
174 |
context += response
|
175 |
|
176 |
print (context)
|