Spaces:
Runtime error
Runtime error
add tabs
Browse files
app.py
CHANGED
@@ -232,37 +232,51 @@ with demo:
|
|
232 |

|
233 |
""")
|
234 |
|
235 |
-
with gr.
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
|
243 |
-
with gr.
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
# Results
|
262 |
-
""")
|
263 |
-
with gr.Row():
|
264 |
-
output_image = gr.Image(label='Output image', type='numpy')
|
265 |
-
output_video = gr.Video(label='Output video')
|
266 |
|
267 |
outputs=[output_image,output_video]
|
268 |
|
|
|
232 |

|
233 |
""")
|
234 |
|
235 |
+
with gr.Tabs():
|
236 |
+
with gr.TabItem("Main"):
|
237 |
+
with gr.Row():
|
238 |
+
text = gr.Textbox(placeholder="Enter a description of a face", label='Text prompt', value="A beautiful girl by Greg Rutkowski")
|
239 |
+
with gr.TabItem("Settings"):
|
240 |
+
with gr.Row():
|
241 |
+
# with gr.Group():
|
242 |
+
with gr.Column():
|
243 |
+
clip_guidance_scale = gr.Slider(minimum=0, maximum=3000, step=1, value=600, label="Prompt strength")
|
244 |
+
tv_scale = gr.Slider(minimum=0, maximum=1000, step=1, value=0, label="Smoothness")
|
245 |
+
range_scale = gr.Slider(minimum=0, maximum=1000, step=1, value=0, label="Compress color range")
|
246 |
+
# with gr.Group():
|
247 |
+
with gr.Column():
|
248 |
+
timestep_respacing = gr.Slider(minimum=25, maximum=100, step=1, value=25, label="Timestep respacing")
|
249 |
+
cutn = gr.Slider(minimum=4, maximum=32, step=1, value=16, label="cutn")
|
250 |
+
seed = gr.Number(value=0, label="Seed")
|
251 |
+
with gr.TabItem("Input images"):
|
252 |
+
with gr.Row():
|
253 |
+
# with gr.Group():
|
254 |
+
with gr.Column():
|
255 |
+
init_image = gr.Image(source="upload", label='initial image (optional)')
|
256 |
+
init_scale = gr.Slider(minimum=0, maximum=45, step=1, value=10, label="Look like the image above")
|
257 |
+
# with gr.Group():
|
258 |
+
with gr.Column():
|
259 |
+
image_prompts = gr.Image(source="upload", label='image prompt (optional)')
|
260 |
+
skip_timesteps = gr.Slider(minimum=0, maximum=1000, step=1, value=0, label="Look like the image above")
|
261 |
|
262 |
+
with gr.Group():
|
263 |
+
with gr.Row():
|
264 |
+
gr.Markdown(
|
265 |
+
"""
|
266 |
+
### Press Run to Run :D
|
267 |
+
----
|
268 |
+
""")
|
269 |
+
with gr.Row():
|
270 |
+
run_button = gr.Button("Run!")
|
271 |
+
with gr.Row():
|
272 |
+
gr.Markdown(
|
273 |
+
"""
|
274 |
+
### Results
|
275 |
+
---
|
276 |
+
""")
|
277 |
+
with gr.Row():
|
278 |
+
output_image = gr.Image(label='Output image', type='numpy')
|
279 |
+
output_video = gr.Video(label='Output video')
|
|
|
|
|
|
|
|
|
|
|
280 |
|
281 |
outputs=[output_image,output_video]
|
282 |
|