Woziii commited on
Commit
fc4710f
·
verified ·
1 Parent(s): 7c78519

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -266,12 +266,10 @@ Assistant: Actuellement, je jongle entre plusieurs activités passionnantes !
266
 
267
  """
268
 
269
- chat_history.append((prompt, None))
 
 
270
  yield chat_history
271
-
272
- for response in generate(prompt, chat_history, system_prompt, context_length):
273
- chat_history[-1] = (prompt, response)
274
- yield chat_history
275
 
276
  def vote(feedback: str, chat_history):
277
  if not chat_history:
 
266
 
267
  """
268
 
269
+
270
+ for response in generate(prompt, chat_history, system_prompt, context_length):
271
+ chat_history[-1] = (prompt, response)
272
  yield chat_history
 
 
 
 
273
 
274
  def vote(feedback: str, chat_history):
275
  if not chat_history: