-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHome.py
60 lines (36 loc) · 1.45 KB
/
Home.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import streamlit as st
from PIL import Image
from video_processing.frontend import process_video_frontend
st.set_page_config(
page_title="LectureGenie Home",
layout="centered",
page_icon=Image.open("icons/icon_icon.png"),
initial_sidebar_state="expanded",
)
import add_title
add_title.add_logo()
if "video_processing_stage" not in st.session_state:
st.session_state.video_processing_stage = None
col1, col2, col3 = st.columns(3)
col2.write(r"$\textsf{\Huge LectureGenie}$")
cols = st.columns(2)
st.write("##### Upload your lecture videos and get interactive quizzes, notes and flashcards")
st.markdown(
"""
1. **Go to the sidebar** to login and/or upload a video
2. Once the video has been processed you can:
- **Go to Video Quiz** for an interactive quiz
- **Go to Notes Generator** to get detailed notes
- **Go to Flashcard Generator** to get flashcards
"""
)
with cols[1]:
process_video_frontend()
st.warning("Uploaded videos are not secure, anyone who knows your username can access your videos."
" Do not upload sensitive information. Videos will be deleted after 24 hours. This is only a prototype.")
st.warning("The things said and shown in the video are sent to a third party AI provider which may store the data for"
" improving their own services.")
# Embed ko-fi
st.markdown(
"[](https://ko-fi.com/A0A5VDT0M)"
)