Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1573,22 +1573,6 @@ if AddAFileForContext:
|
|
| 1573 |
filename = generate_filename(f"{user_prompt}_section_{i+1}", choice)
|
| 1574 |
create_file(filename, user_prompt, response, should_save)
|
| 1575 |
st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
|
| 1576 |
-
|
| 1577 |
-
display_glossary_grid(roleplaying_glossary) # Word Glossary Jump Grid - Dynamically calculates columns based on details length to keep topic together
|
| 1578 |
-
|
| 1579 |
-
|
| 1580 |
-
num_columns_video=st.slider(key="num_columns_video", label="Choose Number of Video Columns", min_value=1, max_value=15, value=4)
|
| 1581 |
-
display_videos_and_links(num_columns_video) # Video Jump Grid
|
| 1582 |
-
|
| 1583 |
-
num_columns_images=st.slider(key="num_columns_images", label="Choose Number of Image Columns", min_value=1, max_value=15, value=4)
|
| 1584 |
-
display_images_and_wikipedia_summaries(num_columns_images) # Image Jump Grid
|
| 1585 |
-
|
| 1586 |
-
num_columns_text=st.slider(key="num_columns_text", label="Choose Number of Text Columns", min_value=1, max_value=15, value=4)
|
| 1587 |
-
display_buttons_with_scores(num_columns_text) # Feedback Jump Grid
|
| 1588 |
-
|
| 1589 |
-
st.markdown(personality_factors)
|
| 1590 |
-
|
| 1591 |
-
|
| 1592 |
|
| 1593 |
|
| 1594 |
# documentation
|
|
@@ -1753,5 +1737,24 @@ def main():
|
|
| 1753 |
video_input = st.file_uploader("Upload a video file", type=["mp4"])
|
| 1754 |
process_audio_and_video(video_input)
|
| 1755 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1756 |
if __name__ == "__main__":
|
| 1757 |
main()
|
|
|
|
| 1573 |
filename = generate_filename(f"{user_prompt}_section_{i+1}", choice)
|
| 1574 |
create_file(filename, user_prompt, response, should_save)
|
| 1575 |
st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1576 |
|
| 1577 |
|
| 1578 |
# documentation
|
|
|
|
| 1737 |
video_input = st.file_uploader("Upload a video file", type=["mp4"])
|
| 1738 |
process_audio_and_video(video_input)
|
| 1739 |
|
| 1740 |
+
|
| 1741 |
+
display_glossary_grid(roleplaying_glossary) # Word Glossary Jump Grid - Dynamically calculates columns based on details length to keep topic together
|
| 1742 |
+
|
| 1743 |
+
|
| 1744 |
+
num_columns_video=st.slider(key="num_columns_video", label="Choose Number of Video Columns", min_value=1, max_value=15, value=4)
|
| 1745 |
+
display_videos_and_links(num_columns_video) # Video Jump Grid
|
| 1746 |
+
|
| 1747 |
+
num_columns_images=st.slider(key="num_columns_images", label="Choose Number of Image Columns", min_value=1, max_value=15, value=4)
|
| 1748 |
+
display_images_and_wikipedia_summaries(num_columns_images) # Image Jump Grid
|
| 1749 |
+
|
| 1750 |
+
num_columns_text=st.slider(key="num_columns_text", label="Choose Number of Text Columns", min_value=1, max_value=15, value=4)
|
| 1751 |
+
display_buttons_with_scores(num_columns_text) # Feedback Jump Grid
|
| 1752 |
+
|
| 1753 |
+
st.markdown(personality_factors)
|
| 1754 |
+
|
| 1755 |
+
|
| 1756 |
+
|
| 1757 |
+
|
| 1758 |
+
|
| 1759 |
if __name__ == "__main__":
|
| 1760 |
main()
|