mianoemm commited on
Commit
6234c48
·
verified ·
1 Parent(s): d4985aa
Files changed (1) hide show
  1. app.py +36 -14
app.py CHANGED
@@ -98,21 +98,43 @@ with gr.Blocks() as demo:
98
 
99
  demo.launch()
100
 
101
- # Customize colors, sizing and fonts
102
- custom_theme = gr.themes.Soft(
103
- primary_hue="pink",
104
- secondary_hue="fuchsia",
105
- neutral_hue="gray",
106
- spacing_size="lg",
107
- radius_size="lg",
108
- text_size="lg",
109
- font=[gr.themes.GoogleFont("IBM Plex Sans"), "sans-serif"],
110
- font_mono=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"]
111
- )
112
-
113
- chatbot = gr.ChatInterface(respond, type="messages", theme=custom_theme)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
 
115
- chatbot.launch(ssr_mode=False)
 
 
 
116
 
117
  chatbot = gr.ChatInterface(fn=respond, title = "Mind Matters", description = "Always here to help", editable = True)
118
  chatbot.launch()
 
98
 
99
  demo.launch()
100
 
101
+ custom_css = """
102
+ body {
103
+ background: linear-gradient(135deg, #ffdde1 0%, #ee9ca7 100%);
104
+ }
105
+
106
+ .gradio-container {
107
+ background: transparent !important;
108
+ }
109
+
110
+ footer {
111
+ visibility: hidden;
112
+ }
113
+
114
+ /* Chatbot styling */
115
+ .message {
116
+ border-radius: 15px !important;
117
+ }
118
+
119
+ /* Input box */
120
+ textarea {
121
+ background-color: rgba(255,255,255,0.8) !important;
122
+ border-radius: 12px !important;
123
+ }
124
+
125
+ /* Buttons */
126
+ button {
127
+ background: #ff85a2 !important;
128
+ color: white !important;
129
+ border: none !important;
130
+ border-radius: 12px !important;
131
+ }
132
+ """
133
 
134
+ demo = gr.ChatInterface(
135
+ fn=respond,
136
+ css=custom_css
137
+ )
138
 
139
  chatbot = gr.ChatInterface(fn=respond, title = "Mind Matters", description = "Always here to help", editable = True)
140
  chatbot.launch()