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

changing layout of the demo

Browse files
Files changed (1) hide show
  1. app.py +19 -19
app.py CHANGED
@@ -116,31 +116,31 @@ 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():
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(
143
- label="Generated Image",
144
  show_label=True,
145
  )
146
 
@@ -160,7 +160,7 @@ with app:
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(
 
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():
125
+ # with gr.Tab(label="Inputs"):
126
+ # gr.Markdown(
127
+ # "### Prompts (a list of prompts separated by vertical bar | )"
128
+ # )
129
+ prompt = gr.Textbox(label="Prompts (a list of prompts separated by vertical bar | ):", show_label=True, placeholder="a peacock, back view | a peacock, front view")
130
+ weights = gr.Textbox(
131
+ label="Weights (a list of weights separated by vertical bar | )", show_label=True, placeholder="1 | -3.5"
132
+ )
133
+ seed = gr.Textbox(
134
+ label="Seed", show_label=True, value=30
135
+ )
136
+ scale = gr.Textbox(
137
+ label="Guidance scale", show_label=True, value=7.5
138
+ )
139
+ image_gen_btn = gr.Button(value="Generate")
140
 
141
  with gr.Column():
142
  img_output = gr.Image(
143
+ label="Result",
144
  show_label=True,
145
  )
146
 
 
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.io).
164
  """)
165
 
166
  gr.Markdown(