Baweja commited on
Commit
6b4cb2d
·
verified ·
1 Parent(s): 8ed3906

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -154,11 +154,19 @@ def respond(
154
  """
155
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
156
  """
 
 
 
 
 
 
 
 
157
  demo = gr.ChatInterface(
158
  respond,
159
  type = 'messages',
160
  additional_inputs=[
161
- gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
162
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
163
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
164
  gr.Slider(
@@ -169,6 +177,12 @@ demo = gr.ChatInterface(
169
  label="Top-p (nucleus sampling)",
170
  ),
171
  ],
 
 
 
 
 
 
172
  )
173
 
174
 
 
154
  """
155
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
156
  """
157
+ # Custom title and description
158
+ title = "🧠 Welcome to Your AI Knowledge Assistant"
159
+ description = """
160
+ HI!!, I am a chatbot, I retrieves relevant information from a custom dataset using RAG. Ask any question, and let me assist you.
161
+ My capabilities and knowledge is limited right now because of computational resources. Originally I can acess more than a million files
162
+ from my knowledge-base but, right now, I am limited to less than 1000 files. LET'S BEGGINNNN......
163
+ """
164
+
165
  demo = gr.ChatInterface(
166
  respond,
167
  type = 'messages',
168
  additional_inputs=[
169
+ gr.Textbox(value="You are a helpful and friendly assistant.", label="System message"),
170
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
171
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
172
  gr.Slider(
 
177
  label="Top-p (nucleus sampling)",
178
  ),
179
  ],
180
+ title=title,
181
+ description=description,
182
+ textbox=gr.Textbox(placeholder=["'What is the future of AI?' or 'App Development'"]),
183
+ examples=[["✨Future of AI"], ["📱App Development"]],
184
+ example_icons=["🤖", "📱"],
185
+ theme="compact",
186
  )
187
 
188