Spaces:
Build error
Build error
| import gradio as gr | |
| from utils import load_courses, recommend_course | |
| courses = load_courses() | |
| def optimize_course(field): | |
| return recommend_course(field, courses) | |
| iface = gr.Interface( | |
| fn=optimize_course, | |
| inputs=gr.Textbox(label="Enter your field or topic (e.g., Python, AI, Data Science)"), | |
| outputs=gr.Markdown(label="Top Recommended Course(s)"), | |
| title="๐ Course Optimizer Bot", | |
| description="Enter a topic and get the best-rated course with summarized reviews.", | |
| ) | |
| iface.launch() | |