Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -396,7 +396,7 @@ CSS = """
|
|
| 396 |
.dark .gradio-container { color: var(--body-text-color); }
|
| 397 |
"""
|
| 398 |
|
| 399 |
-
with gr.Blocks(
|
| 400 |
gr.Markdown(
|
| 401 |
"""
|
| 402 |
# AnyBokeh: Physics-Guided Any-to-Any Bokeh Editing
|
|
@@ -429,7 +429,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
|
|
| 429 |
)
|
| 430 |
seed = gr.Number(label="Seed", value=DEFAULT_SEED, precision=0)
|
| 431 |
with gr.Column():
|
| 432 |
-
output_image = gr.Image(type="pil", label="Edited image", height=420
|
| 433 |
with gr.Accordion("Examples", open=True):
|
| 434 |
gr.Examples(
|
| 435 |
examples=[
|
|
@@ -454,4 +454,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
|
|
| 454 |
api_name="edit_bokeh",
|
| 455 |
)
|
| 456 |
|
| 457 |
-
demo.launch(mcp_server=True)
|
|
|
|
| 396 |
.dark .gradio-container { color: var(--body-text-color); }
|
| 397 |
"""
|
| 398 |
|
| 399 |
+
with gr.Blocks() as demo:
|
| 400 |
gr.Markdown(
|
| 401 |
"""
|
| 402 |
# AnyBokeh: Physics-Guided Any-to-Any Bokeh Editing
|
|
|
|
| 429 |
)
|
| 430 |
seed = gr.Number(label="Seed", value=DEFAULT_SEED, precision=0)
|
| 431 |
with gr.Column():
|
| 432 |
+
output_image = gr.Image(type="pil", label="Edited image", height=420)
|
| 433 |
with gr.Accordion("Examples", open=True):
|
| 434 |
gr.Examples(
|
| 435 |
examples=[
|
|
|
|
| 454 |
api_name="edit_bokeh",
|
| 455 |
)
|
| 456 |
|
| 457 |
+
demo.launch(theme=gr.themes.Citrus(), css=CSS, mcp_server=True)
|