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