Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -44,8 +44,8 @@ def chat_inf(system_prompt,prompt,history,client_choice):
|
|
44 |
do_sample=True,
|
45 |
seed=seed,
|
46 |
)
|
47 |
-
formatted_prompt=prompt
|
48 |
-
|
49 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
50 |
output = ""
|
51 |
|
|
|
44 |
do_sample=True,
|
45 |
seed=seed,
|
46 |
)
|
47 |
+
#formatted_prompt=prompt
|
48 |
+
formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
|
49 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
50 |
output = ""
|
51 |
|