Spaces:
Running on Zero
Running on Zero
gradio 6 API fixes
Browse files
app.py
CHANGED
|
@@ -215,7 +215,7 @@ def compile_and_publish(prompt: str, resolution: str, max_autotune: bool, publis
|
|
| 215 |
return "✅ compiled and published\n\n" + "\n".join(lines)
|
| 216 |
|
| 217 |
|
| 218 |
-
with gr.Blocks(
|
| 219 |
gr.Markdown(
|
| 220 |
f"""
|
| 221 |
# Zing-0.5 — ahead-of-time compiler
|
|
@@ -248,7 +248,7 @@ AOTInductor** and publishes the archive to
|
|
| 248 |
publish = gr.Checkbox(value=True, label=f"publish to {AOTI_REPO}")
|
| 249 |
run = gr.Button("Compile & publish", variant="primary")
|
| 250 |
with gr.Column():
|
| 251 |
-
report = gr.Textbox(label="Report", lines=22
|
| 252 |
|
| 253 |
run.click(
|
| 254 |
compile_and_publish,
|
|
@@ -257,4 +257,4 @@ AOTInductor** and publishes the archive to
|
|
| 257 |
api_name="compile",
|
| 258 |
)
|
| 259 |
|
| 260 |
-
demo.queue().launch()
|
|
|
|
| 215 |
return "✅ compiled and published\n\n" + "\n".join(lines)
|
| 216 |
|
| 217 |
|
| 218 |
+
with gr.Blocks(title="Zing-0.5 · AoTI compiler") as demo:
|
| 219 |
gr.Markdown(
|
| 220 |
f"""
|
| 221 |
# Zing-0.5 — ahead-of-time compiler
|
|
|
|
| 248 |
publish = gr.Checkbox(value=True, label=f"publish to {AOTI_REPO}")
|
| 249 |
run = gr.Button("Compile & publish", variant="primary")
|
| 250 |
with gr.Column():
|
| 251 |
+
report = gr.Textbox(label="Report", lines=22)
|
| 252 |
|
| 253 |
run.click(
|
| 254 |
compile_and_publish,
|
|
|
|
| 257 |
api_name="compile",
|
| 258 |
)
|
| 259 |
|
| 260 |
+
demo.queue().launch(theme=gr.themes.Citrus())
|