lzyhha commited on
Commit
8d207a2
·
1 Parent(s): 671b123
Files changed (1) hide show
  1. app.py +3 -17
app.py CHANGED
@@ -24,6 +24,8 @@ GUIDANCE = """
24
 
25
  <div style='font-size: 24px; font-weight: bold; color: #FF9999;'>Click the task button in the right bottom to acquire examples of various tasks.</div>
26
 
 
 
27
  """
28
 
29
  CITATION = r"""
@@ -45,18 +47,6 @@ If our work is useful for your research, please consider citing:
45
  This project is licensed under xxx.
46
  """
47
 
48
- INTRODUCTION = """
49
- ## 📋 Introduction:
50
- VisualCloze utilizes in-context examples as visual demonstrations to clarify the desired task.
51
-
52
- Through in-context learning, VisualCloze can:
53
- 1. support various in-domain tasks,
54
- 2. generalize to **unseen tasks** through in-context learning,
55
- 3. unify multiple tasks into one step and generate not only the target image but also the intermediate results,
56
- 4. support reverse generation, i.e., reverse-engineering a set of conditions from a target.
57
-
58
- """
59
-
60
  def create_demo(model):
61
  with gr.Blocks(title="VisualCloze Demo") as demo:
62
  gr.Markdown("# VisualCloze: A Universal Image Generation Framework via Visual In-Context Learning")
@@ -78,11 +68,7 @@ def create_demo(model):
78
  </div>
79
  """)
80
 
81
- with gr.Row():
82
- with gr.Column(scale=2):
83
- gr.Markdown(INTRODUCTION)
84
- with gr.Column(scale=2):
85
- gr.Markdown(GUIDANCE)
86
 
87
  # gr.Markdown("<div style='font-size: 24px; font-weight: bold; color: #FF9999;'>" +
88
  # "Note: Click the task button in the right bottom to acquire examples of tasks." +
 
24
 
25
  <div style='font-size: 24px; font-weight: bold; color: #FF9999;'>Click the task button in the right bottom to acquire examples of various tasks.</div>
26
 
27
+ ### 📧 Need help or have questions? Contact us at: lizhongyu [AT] mail.nankai.edu.cn
28
+
29
  """
30
 
31
  CITATION = r"""
 
47
  This project is licensed under xxx.
48
  """
49
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  def create_demo(model):
51
  with gr.Blocks(title="VisualCloze Demo") as demo:
52
  gr.Markdown("# VisualCloze: A Universal Image Generation Framework via Visual In-Context Learning")
 
68
  </div>
69
  """)
70
 
71
+ gr.Markdown(GUIDANCE)
 
 
 
 
72
 
73
  # gr.Markdown("<div style='font-size: 24px; font-weight: bold; color: #FF9999;'>" +
74
  # "Note: Click the task button in the right bottom to acquire examples of tasks." +