lzyhha commited on
Commit
3f91463
·
1 Parent(s): 09a1fed
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -62,6 +62,10 @@ If our work is useful for your research, please consider citing:
62
  This project is licensed under xxx.
63
  """
64
 
 
 
 
 
65
  def create_demo(model):
66
  with gr.Blocks(title="VisualCloze Demo") as demo:
67
  gr.Markdown("# VisualCloze: A Universal Image Generation Framework via Visual In-Context Learning")
@@ -136,6 +140,7 @@ def create_demo(model):
136
  )
137
 
138
  generate_btn = gr.Button("Generate", elem_id="generate_btn")
 
139
 
140
  grid_h = gr.Slider(minimum=0, maximum=max_grid_h-1, value=default_grid_h-1, step=1, label="Number of In-context Examples", elem_id="grid_h")
141
  grid_w = gr.Slider(minimum=1, maximum=max_grid_w, value=default_grid_w, step=1, label="Task Columns", elem_id="grid_w")
 
62
  This project is licensed under xxx.
63
  """
64
 
65
+ NOTE = r"""
66
+ 🌟 🌟 🌟 Before clicking the generate button, please wait until all images, prompts, and other components are fully loaded, especially when using task examples.
67
+ """
68
+
69
  def create_demo(model):
70
  with gr.Blocks(title="VisualCloze Demo") as demo:
71
  gr.Markdown("# VisualCloze: A Universal Image Generation Framework via Visual In-Context Learning")
 
140
  )
141
 
142
  generate_btn = gr.Button("Generate", elem_id="generate_btn")
143
+ gr.Markdown(NOTE)
144
 
145
  grid_h = gr.Slider(minimum=0, maximum=max_grid_h-1, value=default_grid_h-1, step=1, label="Number of In-context Examples", elem_id="grid_h")
146
  grid_w = gr.Slider(minimum=1, maximum=max_grid_w, value=default_grid_w, step=1, label="Task Columns", elem_id="grid_w")