Skip to content

Commit

Permalink
allow webp uploads to img2img tab
Browse files Browse the repository at this point in the history
  • Loading branch information
jjisnow committed Sep 12, 2022
1 parent ba63fd7 commit e832a67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/webui_streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2353,7 +2353,7 @@ def layout():
image_holder = st.empty()

uploaded_images = st.file_uploader(
"Upload Image", accept_multiple_files=False, type=["png", "jpg", "jpeg"],
"Upload Image", accept_multiple_files=False, type=["png", "jpg", "jpeg", "webp"],
help="Upload an image which will be used for the image to image generation.",
)
if uploaded_images:
Expand All @@ -2364,7 +2364,7 @@ def layout():
mask_holder = st.empty()

uploaded_masks = st.file_uploader(
"Upload Mask", accept_multiple_files=False, type=["png", "jpg", "jpeg"],
"Upload Mask", accept_multiple_files=False, type=["png", "jpg", "jpeg", "webp"],
help="Upload an mask image which will be used for masking the image to image generation.",
)
if uploaded_masks:
Expand Down

0 comments on commit e832a67

Please sign in to comment.