Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -120,8 +120,7 @@ def clear_chat_handler() -> list:
|
|
| 120 |
|
| 121 |
# βββ Gradio UI βββ
|
| 122 |
with gr.Blocks(
|
| 123 |
-
title="π€ CodeBot: Your Cool Coding Assistant"
|
| 124 |
-
theme=gr.themes.SoftDark()
|
| 125 |
) as demo:
|
| 126 |
|
| 127 |
gr.Markdown(
|
|
@@ -167,6 +166,8 @@ with gr.Blocks(
|
|
| 167 |
label="π‘ Examples"
|
| 168 |
)
|
| 169 |
example_btn = gr.Button("π₯ Load Example")
|
|
|
|
|
|
|
| 170 |
example_btn.click(
|
| 171 |
fn=lambda q: q or "",
|
| 172 |
inputs=[example_dropdown],
|
|
|
|
| 120 |
|
| 121 |
# βββ Gradio UI βββ
|
| 122 |
with gr.Blocks(
|
| 123 |
+
title="π€ CodeBot: Your Cool Coding Assistant"
|
|
|
|
| 124 |
) as demo:
|
| 125 |
|
| 126 |
gr.Markdown(
|
|
|
|
| 166 |
label="π‘ Examples"
|
| 167 |
)
|
| 168 |
example_btn = gr.Button("π₯ Load Example")
|
| 169 |
+
|
| 170 |
+
# Prefill user_input when an example is selected
|
| 171 |
example_btn.click(
|
| 172 |
fn=lambda q: q or "",
|
| 173 |
inputs=[example_dropdown],
|