CourseIMDb / app.py
adzee17's picture
Update app.py
46d9769 verified
raw
history blame contribute delete
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()