Omnibus commited on
Commit
cdacee9
·
verified ·
1 Parent(s): 106a728

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -290,7 +290,7 @@ def summarize(inp,history,data=None):
290
  new_data = out[s:e]
291
  #yield "", [(inp,f'{mes}\n{new_history}')]
292
 
293
- content = NEWS_REPORTER.format(new_data=new_data)
294
  stream = client.text_generation(content, **generate_kwargs, stream=True, details=True, return_full_text=False)
295
  for response in stream:
296
  resp += str(response.token.text)
 
290
  new_data = out[s:e]
291
  #yield "", [(inp,f'{mes}\n{new_history}')]
292
 
293
+ content = NEWS_REPORTER.format(new_data=str(new_data).replace("{","").replace("}",""))
294
  stream = client.text_generation(content, **generate_kwargs, stream=True, details=True, return_full_text=False)
295
  for response in stream:
296
  resp += str(response.token.text)