Skip to content

Commit

Permalink
Update file uploader to only accept PNG images
Browse files Browse the repository at this point in the history
  • Loading branch information
Myrausman committed Jul 17, 2024
1 parent 0a7326f commit 365c09c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def main():
if app_mode == "Encrypt":
st.header("Encrypt Image")
uploaded_image = st.file_uploader(
"Choose an image...", type=["png", "jpg", "jpeg"]
"Choose an image...", type=["png"]
)
message = st.text_area("Enter your message")
use_encryption = st.checkbox("Use Encryption")
Expand Down Expand Up @@ -72,7 +72,7 @@ def main():
elif app_mode == "Decrypt":
st.header("Decrypt Image")
uploaded_image = st.file_uploader(
"Choose an image...", type=["png", "jpg", "jpeg"]
"Choose an image...", type=["png"]
)
key = st.text_input("Enter key (if any)")

Expand Down

0 comments on commit 365c09c

Please sign in to comment.