Aspik101 commited on
Commit
fe30aa7
1 Parent(s): 97b9e18

Update app.py

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