Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,36 +49,20 @@ knowledge_base_text = """
|
|
49 |
- Service desk is located at HO 1st floor & Annes near basketball ground.
|
50 |
- for SAP , wifi , network related issue , you should contact Md. Monirul Islam & his contact number 01730372426
|
51 |
"""
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
53 |
iface = gr.Interface(
|
54 |
fn=chatbot_interface,
|
55 |
inputs="text",
|
56 |
outputs="text",
|
57 |
title="British American Tobacco Bangladesh",
|
58 |
description="- powered by IDT",
|
59 |
-
theme="
|
|
|
60 |
)
|
61 |
|
62 |
-
|
63 |
-
custom_theme = gr.themes.Theme(
|
64 |
-
default_font="Arial",
|
65 |
-
base="light",
|
66 |
-
title_font="Arial",
|
67 |
-
title_color="black",
|
68 |
-
section_title_font="Arial",
|
69 |
-
section_title_color="black",
|
70 |
-
background="#0e2b63", # Set the background color to #0e2b63
|
71 |
-
input_font="Arial",
|
72 |
-
input_text_color="black",
|
73 |
-
input_background_color="white",
|
74 |
-
input_border_color="#0e2b63", # Adjust border color if needed
|
75 |
-
output_font="Arial",
|
76 |
-
output_text_color="black",
|
77 |
-
output_background_color="white",
|
78 |
-
output_border_color="#0e2b63", # Adjust border color if needed
|
79 |
-
)
|
80 |
-
|
81 |
-
# Assign the custom theme to the interface
|
82 |
-
iface.theme = custom_theme
|
83 |
-
|
84 |
-
iface.launch()
|
|
|
49 |
- Service desk is located at HO 1st floor & Annes near basketball ground.
|
50 |
- for SAP , wifi , network related issue , you should contact Md. Monirul Islam & his contact number 01730372426
|
51 |
"""
|
52 |
+
custom_css = """
|
53 |
+
body {
|
54 |
+
background-color: #0e2b63;
|
55 |
+
}
|
56 |
+
"""
|
57 |
+
|
58 |
iface = gr.Interface(
|
59 |
fn=chatbot_interface,
|
60 |
inputs="text",
|
61 |
outputs="text",
|
62 |
title="British American Tobacco Bangladesh",
|
63 |
description="- powered by IDT",
|
64 |
+
theme="default", # You can adjust the theme as needed
|
65 |
+
css=custom_css # Apply the custom CSS
|
66 |
)
|
67 |
|
68 |
+
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|