Update app.py
Browse files
app.py
CHANGED
@@ -69,13 +69,11 @@ def main():
|
|
69 |
pdf_view = display_pdf(filepath)
|
70 |
|
71 |
with col2:
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
st.markdown(decoded[0])
|
78 |
-
summarized_result = language_model_pipeline(filepath, callback=progress)
|
79 |
st.info("Summarization Complete")
|
80 |
st.success(summarized_result)
|
81 |
|
|
|
69 |
pdf_view = display_pdf(filepath)
|
70 |
|
71 |
with col2:
|
72 |
+
prg = st.progress(0)
|
73 |
+
for i in range(100):
|
74 |
+
time.sleep(0.1)
|
75 |
+
prg.progress(i+1)
|
76 |
+
summarized_result = language_model_pipeline(filepath)
|
|
|
|
|
77 |
st.info("Summarization Complete")
|
78 |
st.success(summarized_result)
|
79 |
|