Spaces:
Running
Running
phyloforfun
commited on
Commit
•
1bdcc4e
1
Parent(s):
8883473
refactor
Browse files
app.py
CHANGED
@@ -378,7 +378,7 @@ def refresh():
|
|
378 |
|
379 |
|
380 |
def upload_local_prompt_to_server(dir_prompt):
|
381 |
-
uploaded_file = st.file_uploader("Upload a custom prompt file", type=['yaml']
|
382 |
if uploaded_file is not None:
|
383 |
# Check the file extension
|
384 |
file_name = uploaded_file.name
|
@@ -1114,7 +1114,7 @@ def content_tab_settings():
|
|
1114 |
with col_local_1:
|
1115 |
st.session_state['dir_uploaded_images'] = os.path.join(st.session_state.dir_home,'uploads')
|
1116 |
st.session_state['dir_uploaded_images_small'] = os.path.join(st.session_state.dir_home,'uploads_small')
|
1117 |
-
uploaded_files = st.file_uploader("Upload Images", type=['jpg', 'jpeg'], accept_multiple_files=True)
|
1118 |
if uploaded_files:
|
1119 |
# Clear input image gallery and input list
|
1120 |
clear_image_gallery()
|
|
|
378 |
|
379 |
|
380 |
def upload_local_prompt_to_server(dir_prompt):
|
381 |
+
uploaded_file = st.file_uploader("Upload a custom prompt file", type=['yaml'])
|
382 |
if uploaded_file is not None:
|
383 |
# Check the file extension
|
384 |
file_name = uploaded_file.name
|
|
|
1114 |
with col_local_1:
|
1115 |
st.session_state['dir_uploaded_images'] = os.path.join(st.session_state.dir_home,'uploads')
|
1116 |
st.session_state['dir_uploaded_images_small'] = os.path.join(st.session_state.dir_home,'uploads_small')
|
1117 |
+
uploaded_files = st.file_uploader("Upload Images", type=['jpg', 'jpeg'], accept_multiple_files=True, key=st.session_state['uploader_idk'])
|
1118 |
if uploaded_files:
|
1119 |
# Clear input image gallery and input list
|
1120 |
clear_image_gallery()
|