From 9a9c357922132e42ec046c5626648cc4682dd473 Mon Sep 17 00:00:00 2001 From: ZeroCool940711 Date: Mon, 31 Oct 2022 13:38:31 -0700 Subject: [PATCH] Added support for webp images in the img2txt tab --- scripts/img2txt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/img2txt.py b/scripts/img2txt.py index 72f260a..3597c46 100644 --- a/scripts/img2txt.py +++ b/scripts/img2txt.py @@ -370,7 +370,7 @@ def layout(): #url = st.text_area("Input Text","") #url = st.text_input("Input Text","", placeholder="A corgi wearing a top hat as an oil painting.") #st.subheader("Input Image") - st.session_state["uploaded_image"] = st.file_uploader('Input Image', type=['png', 'jpg', 'jpeg', 'jfif'], accept_multiple_files=True) + st.session_state["uploaded_image"] = st.file_uploader('Input Image', type=['png', 'jpg', 'jpeg', 'jfif', 'webp'], accept_multiple_files=True) with st.expander("CLIP models", expanded=True): st.session_state["ViT-L/14"] = st.checkbox("ViT-L/14", value=True, help="ViT-L/14 model.")