Spaces:
Running
Running
log progress for HF container logs
Browse files
app.py
CHANGED
@@ -87,7 +87,11 @@ def gradio_run(
|
|
87 |
out.add_page(md.h1(VIDEO_ID), md.image(url=img_name))
|
88 |
out.marp_end()
|
89 |
|
|
|
|
|
90 |
for chunk in track(chunks, description="(processing chunks) Summarizing.."):
|
|
|
|
|
91 |
summary = summarizer(chunk[0])[0]["generated_text"].replace("-", "\n-")
|
92 |
title = title_gen(chunk[0])[0]["generated_text"]
|
93 |
|
|
|
87 |
out.add_page(md.h1(VIDEO_ID), md.image(url=img_name))
|
88 |
out.marp_end()
|
89 |
|
90 |
+
FCL = len(chunks) # full chunk length
|
91 |
+
CCH = 0
|
92 |
for chunk in track(chunks, description="(processing chunks) Summarizing.."):
|
93 |
+
++CCH
|
94 |
+
logger.info(f"{CCH}/{FCL} - {(CCH/FCL)*100:.2f}% - PROCESSING CHUNKS.")
|
95 |
summary = summarizer(chunk[0])[0]["generated_text"].replace("-", "\n-")
|
96 |
title = title_gen(chunk[0])[0]["generated_text"]
|
97 |
|