melbamorph commited on
Commit
f2c0fff
·
verified ·
1 Parent(s): 5dc2631

Update app.py

Browse files

updating gradio theme

Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -88,6 +88,13 @@ agent = CodeAgent(
88
  description=None,
89
  prompt_templates=prompt_templates
90
  )
 
91
  theme = gr.themes.Soft()
 
 
 
 
 
 
92
 
93
- GradioUI(agent, theme=theme).launch()
 
88
  description=None,
89
  prompt_templates=prompt_templates
90
  )
91
+
92
  theme = gr.themes.Soft()
93
+ ui_component = GradioUI(agent) # if this returns a component
94
+
95
+ with gr.Blocks(theme=theme) as demo:
96
+ gr.Markdown("# Chat with BookBrain 📚🤯")
97
+
98
+ ui_component.render()
99
 
100
+ demo.launch()