Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
remove thread lock
Browse filesprevent_thread_lock=True was removed
app.py
CHANGED
@@ -84,9 +84,11 @@ def proc_submission(
|
|
84 |
for i, s in enumerate(_summaries)
|
85 |
]
|
86 |
|
87 |
-
sum_text_out = "
|
|
|
88 |
history["Summary Scores"] = "<br><br>"
|
89 |
-
scores_out = "
|
|
|
90 |
rt = round((time.perf_counter() - st) / 60, 2)
|
91 |
print(f"Runtime: {rt} minutes")
|
92 |
html = ""
|
@@ -265,4 +267,4 @@ if __name__ == "__main__":
|
|
265 |
outputs=[output_text, summary_text, summary_scores],
|
266 |
)
|
267 |
|
268 |
-
demo.launch(enable_queue=True,
|
|
|
84 |
for i, s in enumerate(_summaries)
|
85 |
]
|
86 |
|
87 |
+
sum_text_out = "
|
88 |
+
".join(sum_text)
|
89 |
history["Summary Scores"] = "<br><br>"
|
90 |
+
scores_out = "
|
91 |
+
".join(sum_scores)
|
92 |
rt = round((time.perf_counter() - st) / 60, 2)
|
93 |
print(f"Runtime: {rt} minutes")
|
94 |
html = ""
|
|
|
267 |
outputs=[output_text, summary_text, summary_scores],
|
268 |
)
|
269 |
|
270 |
+
demo.launch(enable_queue=True,)
|