Update app.py
Browse files
app.py
CHANGED
|
@@ -119,6 +119,18 @@ def chatbot_interface(user_message, country, state):
|
|
| 119 |
return f"⚠️ Error in chatbot: {str(e)}"
|
| 120 |
|
| 121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
gr.Interface(
|
| 123 |
fn=chatbot_interface,
|
| 124 |
inputs=[
|
|
@@ -127,5 +139,8 @@ gr.Interface(
|
|
| 127 |
gr.Textbox(label="State (if in India)")
|
| 128 |
],
|
| 129 |
outputs=gr.Textbox(label="Output"),
|
| 130 |
-
|
|
|
|
|
|
|
| 131 |
).launch(share=True)
|
|
|
|
|
|
| 119 |
return f"⚠️ Error in chatbot: {str(e)}"
|
| 120 |
|
| 121 |
|
| 122 |
+
custom_css = """
|
| 123 |
+
body {
|
| 124 |
+
background-color: #1e1e1e; /* Dark Grey */
|
| 125 |
+
color: white;
|
| 126 |
+
font-size: 18px;
|
| 127 |
+
}
|
| 128 |
+
h1 {
|
| 129 |
+
text-align: center;
|
| 130 |
+
color: #FFD700; /* Gold */
|
| 131 |
+
}
|
| 132 |
+
"""
|
| 133 |
+
|
| 134 |
gr.Interface(
|
| 135 |
fn=chatbot_interface,
|
| 136 |
inputs=[
|
|
|
|
| 139 |
gr.Textbox(label="State (if in India)")
|
| 140 |
],
|
| 141 |
outputs=gr.Textbox(label="Output"),
|
| 142 |
+
title="Welcome to AI-Powered Chatbot Created by Sandeep",
|
| 143 |
+
theme="dark",
|
| 144 |
+
css=custom_css
|
| 145 |
).launch(share=True)
|
| 146 |
+
|