Aspik101 commited on
Commit
7bcff41
·
1 Parent(s): 83c73ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,7 +26,7 @@ with gr.Blocks() as demo:
26
  return "", history + [[user_message, None]]
27
 
28
  def bot(history):
29
- print("Question": history)
30
  stream = llm(prompt = f"Jesteś AI assystentem. Odpowiadaj po polsku. <user>: {history}. <assistant>:", **params)
31
  history[-1][1] = ""
32
  answer_save = ""
@@ -35,7 +35,7 @@ with gr.Blocks() as demo:
35
  answer_save += character
36
  time.sleep(0.005)
37
  yield history
38
- print("Answer": answer_save)
39
 
40
  msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
41
  bot, chatbot, chatbot
 
26
  return "", history + [[user_message, None]]
27
 
28
  def bot(history):
29
+ print("Question:", history)
30
  stream = llm(prompt = f"Jesteś AI assystentem. Odpowiadaj po polsku. <user>: {history}. <assistant>:", **params)
31
  history[-1][1] = ""
32
  answer_save = ""
 
35
  answer_save += character
36
  time.sleep(0.005)
37
  yield history
38
+ print("Answer:", answer_save)
39
 
40
  msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
41
  bot, chatbot, chatbot