Spaces:
Sleeping
Sleeping
Update app.py
Browse filesupdating gradio theme
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 |
-
|
|
|
|
| 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()
|