Omnibus commited on
Commit
ba22e9c
1 Parent(s): 8663c93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -131,9 +131,9 @@ def chat_inf(system_prompt,prompt,history,memory,model_state,model_name,seed,tem
131
  seed=seed,
132
  )
133
  if system_prompt:
134
- formatted_prompt = format_prompt_choose(f"{system_prompt}, {prompt}", memory[0-chat_mem:],cust_p,model_n)
135
  else:
136
- formatted_prompt = format_prompt_choose(prompt, memory[0-chat_mem:],cust_p,model_n)
137
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=True)
138
  output = ""
139
  for response in stream:
 
131
  seed=seed,
132
  )
133
  if system_prompt:
134
+ formatted_prompt = format_prompt_choose(f"{system_prompt}, {prompt}", memory[0-chat_mem:],cust_p,model_name)
135
  else:
136
+ formatted_prompt = format_prompt_choose(prompt, memory[0-chat_mem:],cust_p,model_name)
137
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=True)
138
  output = ""
139
  for response in stream: