rezaarmand commited on
Commit
1b1da92
·
1 Parent(s): 0e9ddbd

changing the text

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -104,22 +104,23 @@ def predict(prompt, weights, seed, scale=7.5, steps=50):
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()
125
  with app:
@@ -176,8 +177,9 @@ with app:
176
  outputs=[img_output],
177
  )
178
  gr.Markdown("""
179
- \n The algorithem is based on the paper: [Re-imagine the Negative Prompt Algorithm: Transform 2D Diffusion into 3D, alleviate Janus problem and Beyond.](https://Perp-Neg.github.io).
180
- """)
 
181
 
182
  gr.Markdown(
183
  """
 
104
 
105
 
106
  MESSAGE = '''
 
 
107
  Our method helps you achieve two amazing things:
108
 
109
  1. Edit your generated images iteratively without damaging any important concepts.
110
  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).
111
 
 
 
 
 
112
  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.
113
 
114
  Use our demo to create some amazing and unique images!
115
  '''
116
 
117
+ MESSAGE_END = '''
118
+
119
+ 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.
120
+
121
+ 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/).
122
+
123
+ '''
124
 
125
  app = gr.Blocks()
126
  with app:
 
177
  outputs=[img_output],
178
  )
179
  gr.Markdown("""
180
+ \n The algorithem is based on the paper: [Re-imagine the Negative Prompt Algorithm: Transform 2D Diffusion into 3D, alleviate Janus problem and Beyond.](https://Perp-Neg.github.io)
181
+ """)
182
+ gr.Markdown(MESSAGE_END)
183
 
184
  gr.Markdown(
185
  """