MeetJivani commited on
Commit
f75f8e6
1 Parent(s): 95b9cd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -292,14 +292,14 @@ def proc_submission(
292
  **settings,
293
  )
294
  sum_text = [s["summary"][0].strip() + "\n" for s in _summaries]
295
- # sum_scores = [
296
- # f" - Batch Summary {i}: {round(s['summary_score'],4)}"
297
- # for i, s in enumerate(_summaries)
298
- # ]
299
 
300
  full_summary = textlist2html(sum_text)
301
- # history["Summary Scores"] = "<br><br>"
302
- # scores_out = "\n".join(sum_scores)
303
  rt = round((time.perf_counter() - st) / 60, 2)
304
  logging.info(f"Runtime: {rt} minutes")
305
  html = ""
@@ -675,7 +675,7 @@ if __name__ == "__main__":
675
  input_text,
676
  model_name
677
  ],
678
- outputs=[output_text, summary_text, text_file],
679
  )
680
  # aggregate_button.click(
681
  # fn=aggregate_text,
 
292
  **settings,
293
  )
294
  sum_text = [s["summary"][0].strip() + "\n" for s in _summaries]
295
+ sum_scores = [
296
+ f" - Batch Summary {i}: {round(s['summary_score'],4)}"
297
+ for i, s in enumerate(_summaries)
298
+ ]
299
 
300
  full_summary = textlist2html(sum_text)
301
+ history["Summary Scores"] = "<br><br>"
302
+ scores_out = "\n".join(sum_scores)
303
  rt = round((time.perf_counter() - st) / 60, 2)
304
  logging.info(f"Runtime: {rt} minutes")
305
  html = ""
 
675
  input_text,
676
  model_name
677
  ],
678
+ outputs=[output_text, summary_scores, summary_text, text_file],
679
  )
680
  # aggregate_button.click(
681
  # fn=aggregate_text,