Beemer Claude Fable 5 commited on
Commit ·
be40f45
1
Parent(s): 782370b
Webapp: drop show_copy_button (absent in pinned gradio 6.14; crashed the Space at startup)
Browse files- webapp/app.py +4 -2
webapp/app.py
CHANGED
|
@@ -956,9 +956,11 @@ with gr.Blocks(title="CanLex", analytics_enabled=False) as demo:
|
|
| 956 |
# carries the session's prior Q&A pairs so follow-ups have context.
|
| 957 |
history_state = gr.State([])
|
| 958 |
progress_md = gr.Markdown(value="")
|
| 959 |
-
|
|
|
|
|
|
|
| 960 |
with gr.Accordion("Retrieved source passages (every tool call)", open=False):
|
| 961 |
-
sources_md = gr.Markdown(
|
| 962 |
export_btn = gr.Button("Export research memo (.md)", size="sm")
|
| 963 |
export_file = gr.File(label="Research memo", visible=False)
|
| 964 |
|
|
|
|
| 956 |
# carries the session's prior Q&A pairs so follow-ups have context.
|
| 957 |
history_state = gr.State([])
|
| 958 |
progress_md = gr.Markdown(value="")
|
| 959 |
+
# (Gradio 6 dropped show_copy_button on Markdown -- shipping it crashed
|
| 960 |
+
# the Space at startup. The export button is the copy affordance.)
|
| 961 |
+
answer_md = gr.Markdown(value=ANSWER_PLACEHOLDER)
|
| 962 |
with gr.Accordion("Retrieved source passages (every tool call)", open=False):
|
| 963 |
+
sources_md = gr.Markdown()
|
| 964 |
export_btn = gr.Button("Export research memo (.md)", size="sm")
|
| 965 |
export_file = gr.File(label="Research memo", visible=False)
|
| 966 |
|