rezaarmand commited on
Commit
a22d215
·
1 Parent(s): 187b850

change of layout

Browse files
Files changed (1) hide show
  1. app.py +19 -19
app.py CHANGED
@@ -37,15 +37,15 @@ examples = [
37
  ],
38
  [
39
  "a peacock, back view | a peacock, front view",
40
- "1 | -3.5",
41
  "30",
42
- "7.5"
43
  ],
44
  [
45
  "a peacock, back view",
46
  "1",
47
  "30",
48
- "7.5"
49
  ],
50
  [
51
  "A boy wearing sunglasses | a pair of sunglasses with white frame",
@@ -122,21 +122,21 @@ with app:
122
 
123
  with gr.Row():
124
  with gr.Column():
125
- # with gr.Tab(label="FUll prompt"):
126
- gr.Markdown(
127
- "### **Provide a list of prompts and their weights separated by | **"
128
- )
129
- prompt = gr.Textbox(label="List of prompts:", show_label=True)
130
- weights = gr.Textbox(
131
- label="List of weights:", show_label=True
132
- )
133
- seed = gr.Textbox(
134
- label="Seed:", show_label=True
135
- )
136
- scale = gr.Textbox(
137
- label="Guidance scale:", show_label=True
138
- )
139
- image_gen_btn = gr.Button(value="Generate")
140
 
141
  with gr.Column():
142
  img_output = gr.Image(
@@ -160,7 +160,7 @@ with app:
160
  outputs=[img_output],
161
  )
162
  gr.Markdown("""
163
- \n This is the repository for using Perp-Neg sampling with Stable Diffusion model, as presented in [Re-imagine the Negative Prompt Algorithm: Transform 2D Diffusion into 3D, alleviate Janus problem and Beyond.](https://Perp-Neg.github.i).
164
  """)
165
 
166
  gr.Markdown(
 
37
  ],
38
  [
39
  "a peacock, back view | a peacock, front view",
40
+ "1 | -3",
41
  "30",
42
+ "10"
43
  ],
44
  [
45
  "a peacock, back view",
46
  "1",
47
  "30",
48
+ "10"
49
  ],
50
  [
51
  "A boy wearing sunglasses | a pair of sunglasses with white frame",
 
122
 
123
  with gr.Row():
124
  with gr.Column():
125
+ with gr.Tab(label="Inputs"):
126
+ gr.Markdown(
127
+ "### Provide a list of prompts and their weights separated by | "
128
+ )
129
+ prompt = gr.Textbox(label="List of prompts:", show_label=True)
130
+ weights = gr.Textbox(
131
+ label="List of weights:", show_label=True
132
+ )
133
+ seed = gr.Textbox(
134
+ label="Seed:", show_label=True
135
+ )
136
+ scale = gr.Textbox(
137
+ label="Guidance scale:", show_label=True
138
+ )
139
+ image_gen_btn = gr.Button(value="Generate")
140
 
141
  with gr.Column():
142
  img_output = gr.Image(
 
160
  outputs=[img_output],
161
  )
162
  gr.Markdown("""
163
+ \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.i).
164
  """)
165
 
166
  gr.Markdown(