Update app.py
Browse files
app.py
CHANGED
@@ -172,7 +172,7 @@ def format_prompt_inputs(image_collection, text_collection, video_collection, us
|
|
172 |
image = image_candidates[0]
|
173 |
with PILImage.open(image) as img:
|
174 |
img = img.resize((img.width // 2, img.height // 2))
|
175 |
-
img = img.convert("L")
|
176 |
with io.BytesIO() as output:
|
177 |
img.save(output, format="JPEG", quality=60)
|
178 |
compressed_image_data = output.getvalue()
|
@@ -215,8 +215,6 @@ def page_1():
|
|
215 |
st.session_state.text_collection = text_collection
|
216 |
st.session_state.video_collection = video_collection
|
217 |
|
218 |
-
st.video()
|
219 |
-
|
220 |
progress_bar.progress(100)
|
221 |
status_text.text("Processing completed successfully!")
|
222 |
st.success("PDF processed successfully! Collections saved to session state.")
|
|
|
172 |
image = image_candidates[0]
|
173 |
with PILImage.open(image) as img:
|
174 |
img = img.resize((img.width // 2, img.height // 2))
|
175 |
+
# img = img.convert("L")
|
176 |
with io.BytesIO() as output:
|
177 |
img.save(output, format="JPEG", quality=60)
|
178 |
compressed_image_data = output.getvalue()
|
|
|
215 |
st.session_state.text_collection = text_collection
|
216 |
st.session_state.video_collection = video_collection
|
217 |
|
|
|
|
|
218 |
progress_bar.progress(100)
|
219 |
status_text.text("Processing completed successfully!")
|
220 |
st.success("PDF processed successfully! Collections saved to session state.")
|