Severian commited on
Commit
7ac3d2e
·
1 Parent(s): 9e66c8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -70,7 +70,15 @@ def generate_text(message, history):
70
  history = ["init", input_prompt]
71
 
72
 
73
- # Initialize Gradio Chat Interface
 
 
 
 
 
 
 
 
74
  demo = gr.ChatInterface(
75
  fn=generate_text,
76
  title="ANIMA: Biomimicry Exploration",
@@ -91,6 +99,6 @@ demo = gr.ChatInterface(
91
  show_timestamp=True,
92
  allow_screenshot=False,
93
  enable_queue=True,
94
- css=css # Apply custom CSS
95
  )
96
  demo.launch(max_threads=10)
 
70
  history = ["init", input_prompt]
71
 
72
 
73
+ # Define the custom CSS
74
+ css = """
75
+ body { background-color: #f4f4f2; }
76
+ .chat-container { border-radius: 15px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); }
77
+ .message { border-radius: 10px; }
78
+ .input-container input { border-radius: 15px; }
79
+ """
80
+
81
+ # Initialize Gradio Chat Interface with the custom CSS
82
  demo = gr.ChatInterface(
83
  fn=generate_text,
84
  title="ANIMA: Biomimicry Exploration",
 
99
  show_timestamp=True,
100
  allow_screenshot=False,
101
  enable_queue=True,
102
+ css=css # Apply the custom CSS defined above
103
  )
104
  demo.launch(max_threads=10)