rezaarmand commited on
Commit
0e9ddbd
1 Parent(s): 8bf8763

changing layout of the demo

Browse files
Files changed (1) hide show
  1. app.py +18 -2
app.py CHANGED
@@ -103,7 +103,22 @@ def predict(prompt, weights, seed, scale=7.5, steps=50):
103
 
104
 
105
 
 
 
106
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
 
109
  app = gr.Blocks()
@@ -116,9 +131,10 @@ with app:
116
  )
117
  gr.Markdown(
118
  """
119
- ### **<p align='center'>Demo created by Huangjie Zheng and Reza Armandpour</p>**
120
  """
121
  )
 
122
 
123
  with gr.Row():
124
  with gr.Column():
@@ -165,7 +181,7 @@ with app:
165
 
166
  gr.Markdown(
167
  """
168
- \n Demo created by: Huangjie Zheng and Reza Armandpour</a>.
169
  """
170
  )
171
 
 
103
 
104
 
105
 
106
+ MESSAGE = '''
107
+ ### Welcome to Our Negative Prompt Implementation!
108
 
109
+ Our method helps you achieve two amazing things:
110
+
111
+ 1. Edit your generated images iteratively without damaging any important concepts.
112
+ 2. Generate any view of objects that the original Stable Diffusion implementation couldn't produce. For example, you can generate a "peacock, back view" by using "peacock, front view" as the negative prompt. Compare our method to [Stable Diffusion](https://huggingface.co/spaces/stabilityai/stable-diffusion).
113
+
114
+ Unlike the original implementation, our method ensures that everything provided as the main prompt remains intact even when there is an overlap between the positive and negative prompts.
115
+
116
+ We've also integrated the idea of robust view generation in text-to-3D to avoid the multihead problem. Check out our work on this at [perp-neg.github.io](https://perp-neg.github.io/).
117
+
118
+ To use our demo, simply enter your main prompt first, followed by a set of positive and negative prompts separated by "|". When only one prompt is provided and the weight of that prompt is 1, it is identical to using Stable Diffusion. We provided those as examples for the sake of comparison of our algorithm to Stable Diffusion. Put the weight of main prompt as 1.
119
+
120
+ Use our demo to create some amazing and unique images!
121
+ '''
122
 
123
 
124
  app = gr.Blocks()
 
131
  )
132
  gr.Markdown(
133
  """
134
+ ### **<p align='center'>Demo created by Reza Armandpour and Huangjie Zheng</p>**
135
  """
136
  )
137
+ gr.Markdown(MESSAGE)
138
 
139
  with gr.Row():
140
  with gr.Column():
 
181
 
182
  gr.Markdown(
183
  """
184
+ \n Demo created by: Reza Armandpour and Huangjie Zheng</a>.
185
  """
186
  )
187