Spaces:
Build error
Build error
Download app.py from adzee17/CourseIMDb: direct link, hf CLI and curl.
- Browser
- Download file 511 Bytes
-
https://huggingface.co/spaces/adzee17/CourseIMDb/resolve/main/app.py
- Command line
-
hf download hf://spaces/adzee17/CourseIMDb/app.py
-
curl -L -o app.py https://huggingface.co/spaces/adzee17/CourseIMDb/resolve/main/app.py
511 Bytes
| 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() | |