Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -143,7 +143,7 @@ def run_gpt(
|
|
143 |
|
144 |
|
145 |
#formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
|
146 |
-
formatted_prompt = format_prompt(f'{content}', history)
|
147 |
|
148 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
149 |
resp = ""
|
|
|
143 |
|
144 |
|
145 |
#formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
|
146 |
+
formatted_prompt = format_prompt(f'{content}', **prompt_kwargs['history'])
|
147 |
|
148 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
149 |
resp = ""
|