MarMont commited on
Commit
634e312
1 Parent(s): 1818f05

remove headlines

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -554,10 +554,11 @@ def main(dataset, model, progress=gr.Progress(track_tqdm=True)):
554
  print('doing topic summarization')
555
  headlines = topic_summarization(top_tweets)
556
  headlines = '\n'.join(str(h) for h in headlines)
 
557
 
558
 
559
 
560
- return place_data, headlines
561
 
562
 
563
  iface = gr.Interface(fn=main,
@@ -572,8 +573,9 @@ iface = gr.Interface(fn=main,
572
  label="Model")
573
  ],
574
  # examples=examples,
575
- outputs=["text",
576
- "text"],
 
577
  enable_queue=True,
578
  debug=True,
579
  )
 
554
  print('doing topic summarization')
555
  headlines = topic_summarization(top_tweets)
556
  headlines = '\n'.join(str(h) for h in headlines)
557
+ print(headlines)
558
 
559
 
560
 
561
+ return place_data
562
 
563
 
564
  iface = gr.Interface(fn=main,
 
573
  label="Model")
574
  ],
575
  # examples=examples,
576
+ outputs="text",
577
+ # ["text",
578
+ # "text"],
579
  enable_queue=True,
580
  debug=True,
581
  )