Spaces:
Running
Running
Update components/study_path_generator.py
Browse files
components/study_path_generator.py
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
-
from utils.
|
2 |
|
3 |
def generate_study_path(level, topic):
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
1 |
+
from utils.aiml_api_utils import call_aiml_api
|
2 |
|
3 |
def generate_study_path(level, topic):
|
4 |
+
# Generate the prompt based on user inputs
|
5 |
+
prompt = f"Create a {level} level study path for learning {topic}."
|
6 |
+
|
7 |
+
# Call the AI/ML API to get the generated study path
|
8 |
+
study_plan = call_aiml_api(prompt, max_tokens=500)
|
9 |
+
|
10 |
+
return study_plan
|