Omnibus commited on
Commit
660846d
·
verified ·
1 Parent(s): b08b82d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -98,9 +98,9 @@ def run_gpt(
98
 
99
 
100
  NEWS_REPORTER="""You are an Expert News Aggregator. Your duty is to read and compress all of the News Articles you are given into 10 or more individual articles that capture the full context of the current news. Compile your articles into JSON format which the user will load into an RSS reader for other users to read.
101
- *** Output Format Example:
102
  {output_format}
103
- *** News Articles:
104
  {new_data}
105
  """
106
  output_format="""{"title": "title of the first article","description": "description of the article","article": "your custom written article","links": "all source links that have contributed to the article"},{"title": "title of the second article","description": "description of the article","article": "your custom written article","links": "all source links that have contributed to the article"}"""
@@ -361,7 +361,7 @@ with gr.Blocks() as app:
361
  #error_box=gr.JSON()
362
  error_box=gr.JSON()
363
  fil = gr.Textbox()
364
- keyw.click(get_records,[inst,out_json],[inst,cb])
365
  load_btn.click(load_data,rss_custom,[out_json,cb])
366
  u_btn.click(find_rss,None,[out_json,cb,error_box])
367
  sub_btn.click(summarize,[inst,cb,out_json],[inst,cb,error_box])
 
98
 
99
 
100
  NEWS_REPORTER="""You are an Expert News Aggregator. Your duty is to read and compress all of the News Articles you are given into 10 or more individual articles that capture the full context of the current news. Compile your articles into JSON format which the user will load into an RSS reader for other users to read.
101
+ Output Format:
102
  {output_format}
103
+ News Articles:
104
  {new_data}
105
  """
106
  output_format="""{"title": "title of the first article","description": "description of the article","article": "your custom written article","links": "all source links that have contributed to the article"},{"title": "title of the second article","description": "description of the article","article": "your custom written article","links": "all source links that have contributed to the article"}"""
 
361
  #error_box=gr.JSON()
362
  error_box=gr.JSON()
363
  fil = gr.Textbox()
364
+ #keyw.click(get_records,[inst,out_json],[inst,cb])
365
  load_btn.click(load_data,rss_custom,[out_json,cb])
366
  u_btn.click(find_rss,None,[out_json,cb,error_box])
367
  sub_btn.click(summarize,[inst,cb,out_json],[inst,cb,error_box])