johann22 commited on
Commit
b7701f0
1 Parent(s): f969f8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -55,11 +55,13 @@ def gen_from_infer(purpose,history,image,model_drop,chat_drop,choice,seed):
55
  yield (history,out_img)
56
 
57
  def format_prompt(message, history,seed):
 
58
  prompt = "<s>"
59
  t=False
60
  for user_prompt, bot_response in history:
61
  prompt += f"[INST] {user_prompt} [/INST]"
62
  prompt += f" {bot_response}</s> "
 
63
  if user_prompt == message:
64
  t=True
65
  if t:
 
55
  yield (history,out_img)
56
 
57
  def format_prompt(message, history,seed):
58
+ #print (f'HISTORY ::: {history}')
59
  prompt = "<s>"
60
  t=False
61
  for user_prompt, bot_response in history:
62
  prompt += f"[INST] {user_prompt} [/INST]"
63
  prompt += f" {bot_response}</s> "
64
+ print(f'MESSAGE :: {message}, USER_PROMPT :: {user_prompt}')
65
  if user_prompt == message:
66
  t=True
67
  if t: