multimodalart HF Staff commited on
Commit
2e5bbe9
·
verified ·
1 Parent(s): 52e0fb7

gradio 6 API fixes

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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(theme=gr.themes.Citrus(), title="Zing-0.5 · AoTI compiler") as demo:
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, show_copy_button=True)
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())