Nithish310 commited on
Commit
37d8674
·
verified ·
1 Parent(s): 38f52f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +48 -2
app.py CHANGED
@@ -232,12 +232,58 @@ demo = gr.ChatInterface(
232
  show_copy_button=True,
233
  likeable=True,
234
  layout="panel",
235
- css=".chat-container { border: 1px solid #ccc; border-radius: 5px; padding: 10px; }.chat-message { background-color: #f0f0f0; padding: 10px; border-radius: 5px; margin-bottom: 10px; }.chat-message.own { background-color: #dff0d8; }.chat-message.own::before { content: 'You'; font-weight: bold; }.chat-message.bot::before { content: 'Bot'; font-weight: bold; }",
236
  ),
237
- description="# OpenGPT 4o \n ### chat, generate images, perform web searches, and Q&A with images.",
238
  textbox=gr.MultimodalTextbox(),
239
  multimodal=True,
240
  concurrency_limit=200,
241
  cache_examples=False,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
  )
243
  demo.launch()
 
232
  show_copy_button=True,
233
  likeable=True,
234
  layout="panel",
 
235
  ),
236
+ description="# OpenGPT 4o \n ### chat, generate images, perform web searches, and Q&A with images.`,
237
  textbox=gr.MultimodalTextbox(),
238
  multimodal=True,
239
  concurrency_limit=200,
240
  cache_examples=False,
241
+ theme="default",
242
+ css="""
243
+ .chat-container {
244
+ border: 1px solid #ccc;
245
+ border-radius: 5px;
246
+ padding: 10px;
247
+ }
248
+ .chat-message {
249
+ background-color: #f0f0f0;
250
+ padding: 10px;
251
+ border-radius: 5px;
252
+ margin-bottom: 10px;
253
+ }
254
+ .chat-message.own {
255
+ background-color: #dff0d8;
256
+ }
257
+ .chat-message.own::before {
258
+ content: 'You';
259
+ font-weight: bold;
260
+ }
261
+ .chat-message.bot::before {
262
+ content: 'Bot';
263
+ font-weight: bold;
264
+ }
265
+ /* Add this to make it look like Hugging Chat v0.9.2 */
266
+ .chat-container {
267
+ background-color: #f0f0f0;
268
+ padding: 20px;
269
+ }
270
+ .chat-message {
271
+ background-color: #dff0d8;
272
+ padding: 10px;
273
+ border-radius: 5px;
274
+ margin-bottom: 10px;
275
+ }
276
+ .chat-message.own {
277
+ background-color: #dff0d8;
278
+ }
279
+ .chat-message.own::before {
280
+ content: 'You';
281
+ font-weight: bold;
282
+ }
283
+ .chat-message.bot::before {
284
+ content: 'Bot';
285
+ font-weight: bold;
286
+ }
287
+ """,
288
  )
289
  demo.launch()