Blaise-g commited on
Commit
68b1af3
Β·
1 Parent(s): b399a65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -96,10 +96,10 @@ def proc_submission(
96
  f" - Section {i}: {round(s['summary_score'],4)}"
97
  for i, s in enumerate(_summaries)
98
  ]
99
- rates = [
100
- f" - Section {i}: {round(s['compression_rate'],3)}"
101
- for i, s in enumerate(_summaries)
102
- ]
103
 
104
  sum_text_out = "\n".join(sum_text)
105
  history["Summary Scores"] = "<br><br>"
@@ -114,7 +114,7 @@ def proc_submission(
114
 
115
  html += ""
116
 
117
- return html, sum_text_out, scores_out, rates_out
118
 
119
 
120
  def load_single_example_text(
@@ -286,7 +286,7 @@ if __name__ == "__main__":
286
  token_batch_length,
287
  length_penalty,
288
  ],
289
- outputs=[output_text, summary_text, summary_scores, rates],
290
  )
291
 
292
  demo.launch(enable_queue=True, share=False)
 
96
  f" - Section {i}: {round(s['summary_score'],4)}"
97
  for i, s in enumerate(_summaries)
98
  ]
99
+ #rates = [
100
+ #f" - Section {i}: {round(s['compression_rate'],3)}"
101
+ #for i, s in enumerate(_summaries)
102
+ #]
103
 
104
  sum_text_out = "\n".join(sum_text)
105
  history["Summary Scores"] = "<br><br>"
 
114
 
115
  html += ""
116
 
117
+ return html, sum_text_out, scores_out#, rates_out
118
 
119
 
120
  def load_single_example_text(
 
286
  token_batch_length,
287
  length_penalty,
288
  ],
289
+ outputs=[output_text, summary_text, summary_scores]#, rates],
290
  )
291
 
292
  demo.launch(enable_queue=True, share=False)