Spaces:
Runtime error
Runtime error
Commit
·
95b9cd6
1
Parent(s):
4d8de2e
Update app.py
Browse files
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 |
-
|
297 |
-
|
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 = ""
|
@@ -312,7 +312,7 @@ def proc_submission(
|
|
312 |
settings["remove_stopwords"] = predrop_stopwords
|
313 |
settings["model_name"] = model_name
|
314 |
saved_file = saves_summary(summarize_output=_summaries, outpath=None, **settings)
|
315 |
-
return html, full_summary,
|
316 |
|
317 |
|
318 |
def load_single_example_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 = ""
|
|
|
312 |
settings["remove_stopwords"] = predrop_stopwords
|
313 |
settings["model_name"] = model_name
|
314 |
saved_file = saves_summary(summarize_output=_summaries, outpath=None, **settings)
|
315 |
+
return html, full_summary, saved_file
|
316 |
|
317 |
|
318 |
def load_single_example_text(
|