Unizomby commited on
Commit
b384ec1
·
verified ·
1 Parent(s): fe97dd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -20,11 +20,17 @@ def chatbot_response(message):
20
  response = query_engine.query(message)
21
  return str(response)
22
 
 
 
 
 
 
23
  iface = gr.Interface(fn=chatbot_response,
24
  inputs="text",
25
  outputs="text",
26
  title="My Personal Chatbot",
27
  description="Ask questions and receive answers based on my personal documents.",
 
28
  examples=[["Provide a summary of Donald?"],
29
  ["Has Donald worked with Python?"],
30
  ["Tell me something interesting about Donald"]]
 
20
  response = query_engine.query(message)
21
  return str(response)
22
 
23
+ # Create a custom theme with a blue background
24
+ custom_theme = gr.themes.Default(primary_hue=colors.blue).set(
25
+ body_background_fill="#fafaff" # Light blue
26
+ )
27
+
28
  iface = gr.Interface(fn=chatbot_response,
29
  inputs="text",
30
  outputs="text",
31
  title="My Personal Chatbot",
32
  description="Ask questions and receive answers based on my personal documents.",
33
+ theme=custom_theme,
34
  examples=[["Provide a summary of Donald?"],
35
  ["Has Donald worked with Python?"],
36
  ["Tell me something interesting about Donald"]]