AhmadMustafa commited on
Commit
7080e6e
·
1 Parent(s): d99a36b

update: basic style requirments

Browse files
Files changed (1) hide show
  1. app.py +14 -3
app.py CHANGED
@@ -436,9 +436,20 @@ In the URL, make sure that after RSID there is ? and then rest of the fields are
436
 
437
  def create_chat_interface():
438
  """Create and configure the chat interface."""
439
- with gr.Blocks() as demo:
440
- chatbot = gr.Chatbot()
441
- msg = gr.Textbox()
 
 
 
 
 
 
 
 
 
 
 
442
  transcript_processor_state = gr.State() # maintain state of imp things
443
  call_id_state = gr.State()
444
  colab_id_state = gr.State()
 
436
 
437
  def create_chat_interface():
438
  """Create and configure the chat interface."""
439
+ # write css for chatbot_box have no padding on top, left, and right from screen border
440
+ css = """
441
+ .gradio-container {
442
+
443
+ padding-top: 0px !important;
444
+ padding-left: 0px !important;
445
+ padding-right: 0px !important;
446
+ padding: 0px !important;
447
+ margin: 0px !important;
448
+ }
449
+ """
450
+ with gr.Blocks(fill_height=True, fill_width=True, css=css) as demo:
451
+ chatbot = gr.Chatbot(elem_id="chatbot_box", layout="bubble", show_label=False)
452
+ msg = gr.Textbox(elem_id="chatbot_textbox", show_label=False)
453
  transcript_processor_state = gr.State() # maintain state of imp things
454
  call_id_state = gr.State()
455
  colab_id_state = gr.State()