Designflowww-matthewhall commited on
Commit
d39d3e1
·
verified ·
1 Parent(s): 65279ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -34,15 +34,16 @@ def respond(message, history):
34
  response += msg.choices[0].delta.content
35
  yield response
36
 
37
- # Apply CSS styling instead of Gradio themes
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
- button { background-color: #ff0000; color: #fff; padding: 10px; border-radius: 5px; }
42
- button:hover { background-color: #0056b3; }
 
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__":