Spaces:
Running
Running
Commit
·
8022880
1
Parent(s):
27832f7
11
Browse files
README.md
CHANGED
@@ -10,3 +10,5 @@ pinned: false
|
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
13 |
+
|
14 |
+
|
app.py
CHANGED
@@ -366,6 +366,10 @@ def app():
|
|
366 |
btn = st.button('regenerate this course')
|
367 |
if btn:
|
368 |
st.rerun()
|
|
|
|
|
|
|
|
|
369 |
|
370 |
col1, col2 = st.columns([0.6,0.4])
|
371 |
user_question = st.chat_input("Enter your questions when learning...")
|
|
|
366 |
btn = st.button('regenerate this course')
|
367 |
if btn:
|
368 |
st.rerun()
|
369 |
+
temp_file_paths = initialize_file(added_files)
|
370 |
+
st.session_state.embeddings_df, st.session_state.faiss_index = initialize_vdb(temp_file_paths)
|
371 |
+
st.session_state.course_outline_list = initialize_outline(temp_file_paths, num_lessons, language)
|
372 |
+
st.session_state.course_content_list = initialize_content(st.session_state.course_outline_list, st.session_state.embeddings_df, st.session_state.faiss_index, language)
|
373 |
|
374 |
col1, col2 = st.columns([0.6,0.4])
|
375 |
user_question = st.chat_input("Enter your questions when learning...")
|