denisbay commited on
Commit
10d4032
·
verified ·
1 Parent(s): 8fb8556

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -2
app.py CHANGED
@@ -124,6 +124,38 @@ Respond in a maximum of 3 lines. Favor one-liners when possible.
124
 
125
  # Gradio App UI
126
  with gr.Blocks() as app:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  gr.Markdown("## 🥔 GLaDOS - Aperture Science's Beloved -Central Core-")
128
  chatbot = gr.Chatbot()
129
  txt = gr.Textbox(label="Your question for GLaDOS")
@@ -138,7 +170,6 @@ with gr.Blocks() as app:
138
 
139
  btn.click(run_chat, [txt, chatbot, file_input], [chatbot, txt, file_input])
140
 
141
-
142
  gr.Markdown("## 🖼️ GLaDOS Image Generator")
143
  with gr.Row():
144
  with gr.Column():
@@ -152,5 +183,4 @@ with gr.Blocks() as app:
152
 
153
  generate_btn.click(run_generation, inputs=[t2i_prompt], outputs=[image_output])
154
 
155
-
156
  app.launch()
 
124
 
125
  # Gradio App UI
126
  with gr.Blocks() as app:
127
+ # Inject CSS for background and styling
128
+ gr.HTML("""
129
+ <style>
130
+ body {
131
+ background-image: url('file/wallpaperflare.com_wallpaper.jpg');
132
+ background-size: cover;
133
+ background-position: center;
134
+ background-repeat: no-repeat;
135
+ background-attachment: fixed;
136
+ font-family: 'Segoe UI', sans-serif;
137
+ }
138
+
139
+ .gradio-container {
140
+ background-color: rgba(0, 0, 0, 0.6) !important;
141
+ }
142
+
143
+ .gr-chatbot {
144
+ background-color: rgba(20, 20, 20, 0.85) !important;
145
+ border-radius: 12px;
146
+ color: white;
147
+ }
148
+
149
+ h1, h2, h3, label {
150
+ color: #eee !important;
151
+ }
152
+
153
+ .block.svelte-1ipelgc {
154
+ background: transparent !important;
155
+ }
156
+ </style>
157
+ """)
158
+
159
  gr.Markdown("## 🥔 GLaDOS - Aperture Science's Beloved -Central Core-")
160
  chatbot = gr.Chatbot()
161
  txt = gr.Textbox(label="Your question for GLaDOS")
 
170
 
171
  btn.click(run_chat, [txt, chatbot, file_input], [chatbot, txt, file_input])
172
 
 
173
  gr.Markdown("## 🖼️ GLaDOS Image Generator")
174
  with gr.Row():
175
  with gr.Column():
 
183
 
184
  generate_btn.click(run_generation, inputs=[t2i_prompt], outputs=[image_output])
185
 
 
186
  app.launch()