Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -164,7 +164,7 @@ def summarize(inp,history,seed_slider,data=None):
|
|
164 |
|
165 |
#content = NEWS_REPORTER.format(output_format=output_format,new_data=str(new_data.replace("{","").replace("}","")))
|
166 |
content = NEWS_REPORTER.format(output_format=output_format,new_data=str(new_data))
|
167 |
-
formatted=format_prompt(content)
|
168 |
stream = client.text_generation(content, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
169 |
for response in stream:
|
170 |
resp += response.token.text
|
|
|
164 |
|
165 |
#content = NEWS_REPORTER.format(output_format=output_format,new_data=str(new_data.replace("{","").replace("}","")))
|
166 |
content = NEWS_REPORTER.format(output_format=output_format,new_data=str(new_data))
|
167 |
+
formatted=format_prompt(content,history)
|
168 |
stream = client.text_generation(content, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
169 |
for response in stream:
|
170 |
resp += response.token.text
|