Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -143,9 +143,9 @@ def run_gpt(
|
|
| 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(
|
| 149 |
resp = ""
|
| 150 |
for response in stream:
|
| 151 |
resp += response.token.text
|
|
|
|
| 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(content, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
| 149 |
resp = ""
|
| 150 |
for response in stream:
|
| 151 |
resp += response.token.text
|