Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,12 +20,18 @@ def respond(message, history):
|
|
| 20 |
|
| 21 |
chatbot = gr.ChatInterface(respond, type="messages", title="Friendly chatbot", ) #chatbot UI - conversion history and user input
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
body {
|
| 24 |
background-color: white !important;
|
| 25 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
-
.gradio-container {
|
| 28 |
-
background-color: white !important;
|
| 29 |
-
}
|
| 30 |
|
| 31 |
chatbot.launch()
|
|
|
|
| 20 |
|
| 21 |
chatbot = gr.ChatInterface(respond, type="messages", title="Friendly chatbot", ) #chatbot UI - conversion history and user input
|
| 22 |
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
custom_css = """
|
| 26 |
body {
|
| 27 |
background-color: white !important;
|
| 28 |
}
|
| 29 |
+
"""
|
| 30 |
+
|
| 31 |
+
def respond(message, history):
|
| 32 |
+
return "Hi!", history
|
| 33 |
+
|
| 34 |
+
gr.ChatInterface(respond, css=custom_css).launch()
|
| 35 |
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
chatbot.launch()
|