manabb commited on
Commit
124dcf3
·
verified ·
1 Parent(s): 6f61a0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -406,6 +406,14 @@ css = """
406
  background-color: #000000 !important;
407
  font-size: 16px !important;
408
  }
 
 
 
 
 
 
 
 
409
  """
410
 
411
  with gr.Blocks(css=css) as demo:
@@ -432,9 +440,10 @@ with gr.Blocks(css=css) as demo:
432
  ],
433
  value="gpc_goods", # Default
434
  label="Select Document:",
435
- info="Choose which document to query"
 
436
  )
437
- chatbot = gr.Chatbot(height=500) # Defaults to messages
438
  msg = gr.Textbox(placeholder="Ask a question...", label="Query")
439
  submit_btn = gr.Button("Submit")
440
 
 
406
  background-color: #000000 !important;
407
  font-size: 16px !important;
408
  }
409
+ #nrlchatbot {
410
+ background: linear-gradient(135deg, #000000, #1a1a1a) !important;
411
+ color: #ffffff !important;
412
+ }
413
+ #chatRadio {
414
+ background: linear-gradient(135deg, #000000, #1a1a1a) !important;
415
+ color: #ffffff !important;
416
+ }
417
  """
418
 
419
  with gr.Blocks(css=css) as demo:
 
440
  ],
441
  value="gpc_goods", # Default
442
  label="Select Document:",
443
+ info="Choose which document to query",
444
+ elem_id="chatRadio"
445
  )
446
+ chatbot = gr.Chatbot(height=500, elem_id="nrlchatbot") # Defaults to messages
447
  msg = gr.Textbox(placeholder="Ask a question...", label="Query")
448
  submit_btn = gr.Button("Submit")
449