lastwarning commited on
Commit
8bc83c1
·
verified ·
1 Parent(s): 4543a8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -709,9 +709,7 @@ button:hover { transform:translateY(-1px); }
709
  }
710
  """
711
 
712
- with gr.Blocks(title=APP_NAME, theme=gr.themes.Base(
713
- primary_hue="violet", secondary_hue="slate", neutral_hue="zinc",
714
- ), css=CSS) as demo:
715
  conversation_state = gr.State(None)
716
 
717
  gr.HTML("""
@@ -735,7 +733,6 @@ with gr.Blocks(title=APP_NAME, theme=gr.themes.Base(
735
  """)
736
  chatbot = gr.Chatbot(
737
  value=[],
738
- type="messages",
739
  elem_id="chatbot",
740
  height=470,
741
  show_label=False,
@@ -863,6 +860,12 @@ with gr.Blocks(title=APP_NAME, theme=gr.themes.Base(
863
 
864
  if __name__ == "__main__":
865
  demo.queue(default_concurrency_limit=1, max_size=20).launch(
 
 
 
 
 
 
866
  show_error=True,
867
  share=False,
868
  )
 
709
  }
710
  """
711
 
712
+ with gr.Blocks(title=APP_NAME) as demo:
 
 
713
  conversation_state = gr.State(None)
714
 
715
  gr.HTML("""
 
733
  """)
734
  chatbot = gr.Chatbot(
735
  value=[],
 
736
  elem_id="chatbot",
737
  height=470,
738
  show_label=False,
 
860
 
861
  if __name__ == "__main__":
862
  demo.queue(default_concurrency_limit=1, max_size=20).launch(
863
+ theme=gr.themes.Base(
864
+ primary_hue="violet",
865
+ secondary_hue="slate",
866
+ neutral_hue="zinc",
867
+ ),
868
+ css=CSS,
869
  show_error=True,
870
  share=False,
871
  )