Ashar086 commited on
Commit
b516c5f
·
verified ·
1 Parent(s): 64df20d

Create components/study_path_generator.py

Browse files
Files changed (1) hide show
  1. components/study_path_generator.py +6 -0
components/study_path_generator.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from utils.openai_utils import call_openai
2
+
3
+ def generate_study_path(level, topic):
4
+ prompt = f"Generate a {level.lower()} level study plan for learning {topic}."
5
+ response = call_openai(prompt, max_tokens=300)
6
+ return response