Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,26 @@ with gr.Blocks(css="""
|
|
29 |
button {background-color: orange !important; color: white !important;}
|
30 |
#input_text, #output_text {margin-bottom: 20px;}
|
31 |
""") as demo:
|
32 |
-
gr.Markdown("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
input_text = gr.Textbox(label="Ask your question about courses", placeholder="e.g., Best courses for machine learning", elem_id="input_text")
|
35 |
output_text = gr.Textbox(label="Course Information", placeholder="Your course recommendation will appear here...", elem_id="output_text")
|
|
|
29 |
button {background-color: orange !important; color: white !important;}
|
30 |
#input_text, #output_text {margin-bottom: 20px;}
|
31 |
""") as demo:
|
32 |
+
gr.Markdown("""
|
33 |
+
|
34 |
+
# 🎓 Course Recommendation Chatbot
|
35 |
+
|
36 |
+
Welcome to the **Course Recommendation Chatbot**! This tool was built to provide personalized course suggestions based on your unique interests and learning goals from Analytics Vidhya. Here’s a quick look at what makes this tool effective and how it was created:
|
37 |
+
|
38 |
+
### How it Works
|
39 |
+
The chatbot uses advanced language models and a robust information retrieval setup to recommend courses from **Analytics Vidhya’s free courses**. When you ask about a topic (like "machine learning"), the tool:
|
40 |
+
1. **Scrapes Course Data**: It collects data directly from the course pages, extracting titles, descriptions, curriculum highlights, target audience, and other course details.
|
41 |
+
2. **Processes Course Information**: Using language models, each course’s text is broken down into small, searchable chunks that allow the chatbot to find the most relevant content quickly.
|
42 |
+
3. **Searches and Ranks Results**: A vector search database, powered by **ChromaDB** with OpenAI’s embeddings, stores course information for efficient retrieval. When you ask a question, the system ranks the top courses by relevance.
|
43 |
+
4. **Presents the Best Match**: Finally, it presents the course recommendation in a structured format, including a description, curriculum highlights, duration, level, instructor info, and a link for easy access.
|
44 |
+
|
45 |
+
### Key Features
|
46 |
+
- **Instant Recommendations**: Get real-time, customized course recommendations based on your interests.
|
47 |
+
- **Detailed Information**: Each recommendation includes essential details, such as the course curriculum, target audience, and skill level.
|
48 |
+
- **User-Friendly Interface**: Powered by **Gradio**, the chatbot is designed to be intuitive and interactive.
|
49 |
+
|
50 |
+
This course recommendation chatbot combines **web scraping, language processing**, and **retrieval-augmented generation** techniques to deliver high-quality course recommendations. Just type in the area you’re interested in, and get a course that’s right for you!
|
51 |
+
""")
|
52 |
|
53 |
input_text = gr.Textbox(label="Ask your question about courses", placeholder="e.g., Best courses for machine learning", elem_id="input_text")
|
54 |
output_text = gr.Textbox(label="Course Information", placeholder="Your course recommendation will appear here...", elem_id="output_text")
|