Update app.py
Browse files
app.py
CHANGED
@@ -468,12 +468,23 @@ with tab3:
|
|
468 |
with col1:
|
469 |
|
470 |
st.header("Image Details")
|
471 |
-
|
472 |
-
st.write(image_text_output)
|
473 |
-
text_audio = generate_audio(image_text_output)
|
474 |
|
475 |
-
st.
|
476 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
477 |
|
478 |
# Button for actions related to the selected image
|
479 |
if st.button("Details", key=f"details_{image_index}"):
|
|
|
468 |
with col1:
|
469 |
|
470 |
st.header("Image Details")
|
471 |
+
st.subheader("Concepts to Learn")
|
|
|
|
|
472 |
|
473 |
+
image_conepts = get_image_concepts(st.session_state['image_paths'][image_index])
|
474 |
|
475 |
+
st.write(image_conepts)
|
476 |
+
|
477 |
+
st.divider()
|
478 |
+
|
479 |
+
st.subheader("Description of Our Image")
|
480 |
+
|
481 |
+
image_text_output = analyze_image(st.session_state['image_paths'][image_index])
|
482 |
+
|
483 |
+
st.write(image_text_output)
|
484 |
+
|
485 |
+
st.divider()
|
486 |
+
|
487 |
+
st.header("Create a Story About This Image")
|
488 |
|
489 |
# Button for actions related to the selected image
|
490 |
if st.button("Details", key=f"details_{image_index}"):
|