Update app.py
Browse files
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,
|
135 |
else:
|
136 |
-
formatted_prompt = format_prompt_choose(prompt, memory[0-chat_mem:],cust_p,
|
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:
|