Spaces:
Sleeping
Sleeping
Download pages/study_paths.py from Ashar086/Open_AI_o1_Hackathon: direct link, hf CLI and curl.
- Browser
- Download file 666 Bytes
-
https://huggingface.co/spaces/Ashar086/Open_AI_o1_Hackathon/resolve/main/pages/study_paths.py
- Command line
-
hf download hf://spaces/Ashar086/Open_AI_o1_Hackathon/pages/study_paths.py
-
curl -L -o study_paths.py https://huggingface.co/spaces/Ashar086/Open_AI_o1_Hackathon/resolve/main/pages/study_paths.py
666 Bytes
| import streamlit as st | |
| from components.study_path_generator import generate_study_path | |
| def show_study_paths(): | |
| st.title("Personalized AI-Generated Study Paths") | |
| # User selects their level and topic | |
| level = st.selectbox("Select your knowledge level", ['Beginner', 'Intermediate', 'Advanced']) | |
| topic = st.selectbox("Choose a topic", ['Neural Networks', 'Reinforcement Learning', 'Computer Vision', 'NLP']) | |
| if st.button("Generate Study Path"): | |
| # Call the generator to get the study path | |
| study_plan = generate_study_path(level, topic) | |
| st.subheader(f"Study Path for {topic} ({level})") | |
| st.write(study_plan) | |