decodingdatascience commited on
Commit
7b8e7c1
·
verified ·
1 Parent(s): 6b98c8b

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +8 -10
app2.py CHANGED
@@ -406,14 +406,7 @@ body {
406
  """
407
 
408
 
409
- with gr.Blocks(
410
- title="DDS Enterprise HR Chatbot",
411
- css=custom_css,
412
- theme=gr.themes.Soft(
413
- primary_hue="indigo",
414
- neutral_hue="slate"
415
- )
416
- ) as demo:
417
 
418
  with gr.Column(elem_classes=["main-container"]):
419
 
@@ -511,7 +504,6 @@ with gr.Blocks(
511
 
512
  chatbot = gr.Chatbot(
513
  label="DDS HR Assistant",
514
- type="messages",
515
  elem_id="chatbot",
516
  value=initial_chat.copy(),
517
  height=540
@@ -585,4 +577,10 @@ with gr.Blocks(
585
 
586
 
587
  if __name__ == "__main__":
588
- demo.launch()
 
 
 
 
 
 
 
406
  """
407
 
408
 
409
+ with gr.Blocks(title="DDS Enterprise HR Chatbot") as demo:
 
 
 
 
 
 
 
410
 
411
  with gr.Column(elem_classes=["main-container"]):
412
 
 
504
 
505
  chatbot = gr.Chatbot(
506
  label="DDS HR Assistant",
 
507
  elem_id="chatbot",
508
  value=initial_chat.copy(),
509
  height=540
 
577
 
578
 
579
  if __name__ == "__main__":
580
+ demo.launch(
581
+ theme=gr.themes.Soft(
582
+ primary_hue="indigo",
583
+ neutral_hue="slate"
584
+ ),
585
+ css=custom_css
586
+ )