Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -270,12 +270,7 @@ def main_column(column_name):
|
|
270 |
uploaded_files = st.file_uploader(f"Upload images for {column_name}", type=["png", "jpg", "jpeg"], accept_multiple_files=True, key=f"{column_name}_image_upload")
|
271 |
for image_input in uploaded_files:
|
272 |
image_bytes = image_input.read()
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
process_image(st.session_state.current_user['name'], image_bytes, text_input)
|
279 |
elif option == "Audio":
|
280 |
text_input = st.text_input(f"Enter text prompt to use with Audio context for {column_name}:", key=f"{column_name}_audio_text")
|
281 |
uploaded_files = st.file_uploader(f"Upload an audio file for {column_name}", type=["mp3", "wav"], accept_multiple_files=True, key=f"{column_name}_audio_upload")
|
@@ -288,7 +283,7 @@ process_image(st.session_state.current_user['name'], image_bytes, text_input)
|
|
288 |
process_video(st.session_state.current_user['name'], video_input, text_input)
|
289 |
|
290 |
# Main Streamlit app
|
291 |
-
st.title("
|
292 |
|
293 |
# Sidebar
|
294 |
with st.sidebar:
|
|
|
270 |
uploaded_files = st.file_uploader(f"Upload images for {column_name}", type=["png", "jpg", "jpeg"], accept_multiple_files=True, key=f"{column_name}_image_upload")
|
271 |
for image_input in uploaded_files:
|
272 |
image_bytes = image_input.read()
|
273 |
+
process_image(st.session_state.current_user['name'], image_bytes, text_input)
|
|
|
|
|
|
|
|
|
|
|
274 |
elif option == "Audio":
|
275 |
text_input = st.text_input(f"Enter text prompt to use with Audio context for {column_name}:", key=f"{column_name}_audio_text")
|
276 |
uploaded_files = st.file_uploader(f"Upload an audio file for {column_name}", type=["mp3", "wav"], accept_multiple_files=True, key=f"{column_name}_audio_upload")
|
|
|
283 |
process_video(st.session_state.current_user['name'], video_input, text_input)
|
284 |
|
285 |
# Main Streamlit app
|
286 |
+
st.title("Multiuser Chat with Llama 3.1 and GPT-4o")
|
287 |
|
288 |
# Sidebar
|
289 |
with st.sidebar:
|