Pulkit-exe commited on
Commit
dcf49e5
·
verified ·
1 Parent(s): a137663

Added an introductory part for users

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -94,5 +94,21 @@ def predict(message, history):
94
  response = get_chat_response(message, history_langchain_format)
95
 
96
  return response
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
 
98
- gr.ChatInterface(predict, type="messages").launch(share = True)
 
94
  response = get_chat_response(message, history_langchain_format)
95
 
96
  return response
97
+
98
+ # Define the introductory content
99
+ intro_content = """
100
+ # Course Recommendation Bot
101
+ This bot helps you find **free courses** available on [Analytics Vidhya](https://www.analyticsvidhya.com/).
102
+ You can ask any questions related to these courses.
103
+
104
+ For example:
105
+ - "What are the free courses on Python?"
106
+ - "Do you have any courses on data science?"
107
+ """
108
+
109
+ # Build the Gradio interface
110
+ with gr.Blocks() as demo:
111
+ gr.Markdown(intro_content) # Display introductory content
112
+ chatbot = gr.ChatInterface(predict, type="messages") # Chat interface
113
 
114
+ demo.launch(share=True)