Aspik101 commited on
Commit
002be8f
·
1 Parent(s): 02fc013

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -31,7 +31,6 @@ with gr.Blocks(allow_flagging="auto") as demo:
31
  return "", history + [[user_message, None]]
32
 
33
  def bot(history):
34
- save_log("question", history)
35
  stream = llm(prompt = f"Jesteś AI assystentem. Odpowiadaj po polsku. <user>: {history}. <assistant>:", **params)
36
  history[-1][1] = ""
37
  answer_save = ""
@@ -41,7 +40,6 @@ with gr.Blocks(allow_flagging="auto") as demo:
41
  time.sleep(0.005)
42
  yield history
43
 
44
- save_log("answer", answer_save)
45
  msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
46
  bot, chatbot, chatbot
47
  )
 
31
  return "", history + [[user_message, None]]
32
 
33
  def bot(history):
 
34
  stream = llm(prompt = f"Jesteś AI assystentem. Odpowiadaj po polsku. <user>: {history}. <assistant>:", **params)
35
  history[-1][1] = ""
36
  answer_save = ""
 
40
  time.sleep(0.005)
41
  yield history
42
 
 
43
  msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
44
  bot, chatbot, chatbot
45
  )