Fix Gradio 6 API: theme/css on launch, drop show_copy_button
Browse files
app.py
CHANGED
|
@@ -181,7 +181,7 @@ purpose.
|
|
| 181 |
[Paper](https://huggingface.co/gdiamos/amx-reasoning-v1-instruct/blob/main/paper.pdf)
|
| 182 |
"""
|
| 183 |
|
| 184 |
-
with gr.Blocks(
|
| 185 |
with gr.Column(elem_id="col-container"):
|
| 186 |
gr.Markdown(INTRO)
|
| 187 |
|
|
@@ -200,9 +200,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="amx-reasoning-v1 QA") a
|
|
| 200 |
lines=9,
|
| 201 |
)
|
| 202 |
|
| 203 |
-
answer_box = gr.Textbox(
|
| 204 |
-
label="Answer", elem_id="answer", lines=2, show_copy_button=True
|
| 205 |
-
)
|
| 206 |
info = gr.Markdown()
|
| 207 |
|
| 208 |
with gr.Accordion("Advanced", open=False):
|
|
@@ -250,4 +248,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="amx-reasoning-v1 QA") a
|
|
| 250 |
question.submit(answer, inputs=inputs, outputs=outputs, api_name=False)
|
| 251 |
|
| 252 |
if __name__ == "__main__":
|
| 253 |
-
demo.launch(mcp_server=True)
|
|
|
|
| 181 |
[Paper](https://huggingface.co/gdiamos/amx-reasoning-v1-instruct/blob/main/paper.pdf)
|
| 182 |
"""
|
| 183 |
|
| 184 |
+
with gr.Blocks(title="amx-reasoning-v1 QA") as demo:
|
| 185 |
with gr.Column(elem_id="col-container"):
|
| 186 |
gr.Markdown(INTRO)
|
| 187 |
|
|
|
|
| 200 |
lines=9,
|
| 201 |
)
|
| 202 |
|
| 203 |
+
answer_box = gr.Textbox(label="Answer", elem_id="answer", lines=2)
|
|
|
|
|
|
|
| 204 |
info = gr.Markdown()
|
| 205 |
|
| 206 |
with gr.Accordion("Advanced", open=False):
|
|
|
|
| 248 |
question.submit(answer, inputs=inputs, outputs=outputs, api_name=False)
|
| 249 |
|
| 250 |
if __name__ == "__main__":
|
| 251 |
+
demo.launch(theme=gr.themes.Citrus(), css=CSS, mcp_server=True)
|