multimodalart HF Staff commited on
Commit
c930678
·
verified ·
1 Parent(s): c49c83e

Move Citrus theme to launch() (Gradio 6)

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,7 +78,7 @@ EXAMPLES = [
78
  "A bowl of ramen with steam rising, photorealistic, top-down view.",
79
  ]
80
 
81
- with gr.Blocks(theme=gr.themes.Citrus()) as demo:
82
  gr.Markdown(
83
  """
84
  # 🍊 MiniT2I
@@ -120,4 +120,4 @@ with gr.Blocks(theme=gr.themes.Citrus()) as demo:
120
  run_btn.click(generate, inputs=inputs, outputs=[output, seed])
121
  prompt.submit(generate, inputs=inputs, outputs=[output, seed])
122
 
123
- demo.launch()
 
78
  "A bowl of ramen with steam rising, photorealistic, top-down view.",
79
  ]
80
 
81
+ with gr.Blocks() as demo:
82
  gr.Markdown(
83
  """
84
  # 🍊 MiniT2I
 
120
  run_btn.click(generate, inputs=inputs, outputs=[output, seed])
121
  prompt.submit(generate, inputs=inputs, outputs=[output, seed])
122
 
123
+ demo.launch(theme=gr.themes.Citrus())