Update app.py
Browse files
app.py
CHANGED
@@ -469,7 +469,7 @@ def FileSidebar():
|
|
469 |
st.download_button("Download PDF", content, file, "application/pdf")
|
470 |
st.write("PDF Viewer not natively supported; download to view.")
|
471 |
elif ext in [".png", ".jpg", ".jpeg"]:
|
472 |
-
st.image(content,
|
473 |
elif ext in [".wav", ".mp3"]:
|
474 |
st.audio(content, format=f"audio/{ext[1:]}")
|
475 |
elif ext == ".mp4":
|
@@ -482,7 +482,7 @@ def FileSidebar():
|
|
482 |
st.download_button("Download PDF to Edit", content, file, "application/pdf")
|
483 |
st.write("PDF editing not supported in-app; download to edit externally.")
|
484 |
elif ext in [".png", ".jpg", ".jpeg"]:
|
485 |
-
st.image(content,
|
486 |
elif ext in [".wav", ".mp3"]:
|
487 |
st.audio(content, format=f"audio/{ext[1:]}")
|
488 |
elif ext == ".mp4":
|
@@ -543,7 +543,7 @@ def main():
|
|
543 |
col1, col2 = st.columns(2)
|
544 |
with col1:
|
545 |
if st.button("๐ Describe"):
|
546 |
-
st.session_state["image_prompt"] = "Describe this image and list
|
547 |
with col2:
|
548 |
if st.button("๐ OCR"):
|
549 |
st.session_state["image_prompt"] = "Show electronic text of text in the image."
|
|
|
469 |
st.download_button("Download PDF", content, file, "application/pdf")
|
470 |
st.write("PDF Viewer not natively supported; download to view.")
|
471 |
elif ext in [".png", ".jpg", ".jpeg"]:
|
472 |
+
st.image(content, use_container_width=True)
|
473 |
elif ext in [".wav", ".mp3"]:
|
474 |
st.audio(content, format=f"audio/{ext[1:]}")
|
475 |
elif ext == ".mp4":
|
|
|
482 |
st.download_button("Download PDF to Edit", content, file, "application/pdf")
|
483 |
st.write("PDF editing not supported in-app; download to edit externally.")
|
484 |
elif ext in [".png", ".jpg", ".jpeg"]:
|
485 |
+
st.image(content, use_container_width=True, caption=f"Viewing {file}")
|
486 |
elif ext in [".wav", ".mp3"]:
|
487 |
st.audio(content, format=f"audio/{ext[1:]}")
|
488 |
elif ext == ".mp4":
|
|
|
543 |
col1, col2 = st.columns(2)
|
544 |
with col1:
|
545 |
if st.button("๐ Describe"):
|
546 |
+
st.session_state["image_prompt"] = "Describe this image and list all classified facts as a markdown outline and markdown table subnumbered by features leading with emojis."
|
547 |
with col2:
|
548 |
if st.button("๐ OCR"):
|
549 |
st.session_state["image_prompt"] = "Show electronic text of text in the image."
|