Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,15 +34,16 @@ def respond(message, history):
|
|
| 34 |
response += msg.choices[0].delta.content
|
| 35 |
yield response
|
| 36 |
|
| 37 |
-
# Apply
|
| 38 |
css = """
|
| 39 |
body { background-color: #f4f4f4; font-family: Arial, sans-serif; }
|
| 40 |
.gradio-container { max-width: 800px; margin: auto; border: 1px solid #ccc; padding: 20px; background: #fff; }
|
| 41 |
-
|
| 42 |
-
button
|
|
|
|
| 43 |
"""
|
| 44 |
|
| 45 |
-
# Launch Gradio chat interface
|
| 46 |
demo = gr.ChatInterface(respond, css=css)
|
| 47 |
|
| 48 |
if __name__ == "__main__":
|
|
|
|
| 34 |
response += msg.choices[0].delta.content
|
| 35 |
yield response
|
| 36 |
|
| 37 |
+
# Apply inline CSS
|
| 38 |
css = """
|
| 39 |
body { background-color: #f4f4f4; font-family: Arial, sans-serif; }
|
| 40 |
.gradio-container { max-width: 800px; margin: auto; border: 1px solid #ccc; padding: 20px; background: #fff; }
|
| 41 |
+
.chatbot { background: #ffffff; border-radius: 10px; padding: 15px; }
|
| 42 |
+
button { background-color: #FF0000; color: #fff; padding: 10px; border-radius: 5px; }
|
| 43 |
+
button:hover { background-color: #cc0000; }
|
| 44 |
"""
|
| 45 |
|
| 46 |
+
# Launch Gradio chat interface with CSS styling
|
| 47 |
demo = gr.ChatInterface(respond, css=css)
|
| 48 |
|
| 49 |
if __name__ == "__main__":
|