arunsa commited on
Commit
1072c15
·
1 Parent(s): 1caf5dc

Fix Gradio 5.29 compat: theme/css in Blocks(), type=messages on Chatbot

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -306,7 +306,7 @@ def _stat_html(value, label):
306
 
307
  theme = create_theme()
308
 
309
- with gr.Blocks(title="LifeLog") as app:
310
 
311
  # Header
312
  gr.HTML("""
@@ -376,6 +376,7 @@ with gr.Blocks(title="LifeLog") as app:
376
  chatbot = gr.Chatbot(
377
  label="Follow-up Questions",
378
  height=320,
 
379
  )
380
  with gr.Row():
381
  user_resp = gr.Textbox(
@@ -851,7 +852,5 @@ with gr.Blocks(title="LifeLog") as app:
851
 
852
  if __name__ == "__main__":
853
  app.launch(
854
- theme=theme,
855
- css=CUSTOM_CSS,
856
  allowed_paths=["data/cards"],
857
  )
 
306
 
307
  theme = create_theme()
308
 
309
+ with gr.Blocks(title="LifeLog", theme=theme, css=CUSTOM_CSS) as app:
310
 
311
  # Header
312
  gr.HTML("""
 
376
  chatbot = gr.Chatbot(
377
  label="Follow-up Questions",
378
  height=320,
379
+ type="messages",
380
  )
381
  with gr.Row():
382
  user_resp = gr.Textbox(
 
852
 
853
  if __name__ == "__main__":
854
  app.launch(
 
 
855
  allowed_paths=["data/cards"],
856
  )