Antonela Tamagnini commited on
Commit
73dfa04
·
1 Parent(s): b8ab978

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -0
app.py CHANGED
@@ -42,6 +42,32 @@ def respond(
42
  """
43
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
44
  """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  demo = gr.ChatInterface(
46
  respond,
47
  additional_inputs=[
@@ -56,6 +82,7 @@ demo = gr.ChatInterface(
56
  label="Top-p (nucleus sampling)",
57
  ),
58
  ],
 
59
  )
60
 
61
 
 
42
  """
43
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
44
  """
45
+
46
+ # Custom CSS for changing the color scheme and adding a logo
47
+ custom_css = """
48
+ #component-1 {
49
+ background-color: #f0f8ff; /* Light blue background */
50
+ border-radius: 10px; /* Rounded corners for the input components */
51
+ padding: 10px;
52
+ }
53
+
54
+ #component-1 h1 {
55
+ display: inline-block;
56
+ margin: 0;
57
+ }
58
+
59
+ #header {
60
+ display: flex;
61
+ align-items: center;
62
+ justify-content: space-between;
63
+ }
64
+
65
+ #logo {
66
+ height: 50px;
67
+ }
68
+ """
69
+
70
+ # Gradio interface with additional components
71
  demo = gr.ChatInterface(
72
  respond,
73
  additional_inputs=[
 
82
  label="Top-p (nucleus sampling)",
83
  ),
84
  ],
85
+ css=custom_css
86
  )
87
 
88