Spaces:
Runtime error
Runtime error
SumayyaAli
commited on
Commit
•
e89f971
1
Parent(s):
9ecdb11
Update app.py
Browse files
app.py
CHANGED
@@ -73,16 +73,13 @@ def main():
|
|
73 |
|
74 |
if uploaded_file is not None:
|
75 |
if st.button("Summarize"):
|
76 |
-
|
77 |
# Use a temporary filename directly
|
78 |
with tempfile.NamedTemporaryFile(delete=False) as temp_file:
|
79 |
temp_file.write(uploaded_file.read())
|
80 |
temp_file.flush() # Ensure contents are written to disk
|
81 |
filepath = temp_file.name
|
82 |
-
|
83 |
-
with col1:
|
84 |
-
st.info("Uploaded File")
|
85 |
-
pdf_view = displayPDF(filepath)"""
|
86 |
with col2:
|
87 |
summary = llm_pipeline(filepath)
|
88 |
st.info("Summarization Complete")
|
|
|
73 |
|
74 |
if uploaded_file is not None:
|
75 |
if st.button("Summarize"):
|
76 |
+
col2 = st.columns(1)
|
77 |
# Use a temporary filename directly
|
78 |
with tempfile.NamedTemporaryFile(delete=False) as temp_file:
|
79 |
temp_file.write(uploaded_file.read())
|
80 |
temp_file.flush() # Ensure contents are written to disk
|
81 |
filepath = temp_file.name
|
82 |
+
|
|
|
|
|
|
|
83 |
with col2:
|
84 |
summary = llm_pipeline(filepath)
|
85 |
st.info("Summarization Complete")
|