From bb53b5983ff133ce4bcf8b75fc23437da17c2b77 Mon Sep 17 00:00:00 2001 From: Artem Murashko Date: Mon, 29 Apr 2024 23:33:08 +0300 Subject: [PATCH] fix create page --- ui/pages/create_page.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/pages/create_page.py b/ui/pages/create_page.py index e1e33b0..dfc8005 100644 --- a/ui/pages/create_page.py +++ b/ui/pages/create_page.py @@ -10,7 +10,11 @@ def display_add_form(): title = st.text_input(label="Title*") price = st.text_input(label="Price*") description = st.text_area(label="Description") - picture = st.file_uploader(label="Upload the picture*") + picture = st.file_uploader( + label="Upload the picture*", + type=['png', 'jpg', 'jpeg', 'gif', 'heic'], + accept_multiple_files=False, + ) st.markdown("**required*")