Spaces:
Paused
Paused
apolinario
commited on
Commit
•
3b06150
1
Parent(s):
af26021
Order change of parameters
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ perceptor = (
|
|
76 |
.requires_grad_(False)
|
77 |
.to(device)
|
78 |
)
|
79 |
-
def run_all(user_input,
|
80 |
import random
|
81 |
#if uploaded_file is not None:
|
82 |
#uploaded_folder = f"{DefaultPaths.root_path}/uploaded"
|
@@ -2341,12 +2341,12 @@ iface = gr.Interface(
|
|
2341 |
fn=run_all,
|
2342 |
inputs=[
|
2343 |
gr.inputs.Textbox(label="Prompt - try adding increments to your prompt such as 'oil on canvas', 'a painting', 'a book cover'",default="chalk pastel drawing of a dog wearing a funny hat"),
|
2344 |
-
gr.inputs.Slider(label="Steps - more steps can increase quality but will take longer to generate",default=50,maximum=250,minimum=1,step=1),
|
2345 |
-
gr.inputs.Dropdown(label="Flavor",choices=["ginger", "cumin", "holywater", "zynth", "wyvern", "aaron", "moth", "juu", "custom"]),
|
2346 |
-
markdown,
|
2347 |
-
gr.inputs.Dropdown(label="Style",choices=["Default","Balanced","Detailed","Consistent Creativity","Realistic","Smooth","Subtle MSE","Hyper Fast Results"],default="Hyper Fast Results"),
|
2348 |
gr.inputs.Slider(label="Width", default=256, minimum=32, step=32, maximum=512),
|
2349 |
gr.inputs.Slider(label="Height", default=256, minimum=32, step=32, maximum=512),
|
|
|
|
|
|
|
|
|
2350 |
],
|
2351 |
outputs=image,
|
2352 |
title="Generate images from text with VQGAN+CLIP (Hypertron v2)",
|
|
|
76 |
.requires_grad_(False)
|
77 |
.to(device)
|
78 |
)
|
79 |
+
def run_all(user_input, width, height, template, num_steps, flavor):
|
80 |
import random
|
81 |
#if uploaded_file is not None:
|
82 |
#uploaded_folder = f"{DefaultPaths.root_path}/uploaded"
|
|
|
2341 |
fn=run_all,
|
2342 |
inputs=[
|
2343 |
gr.inputs.Textbox(label="Prompt - try adding increments to your prompt such as 'oil on canvas', 'a painting', 'a book cover'",default="chalk pastel drawing of a dog wearing a funny hat"),
|
|
|
|
|
|
|
|
|
2344 |
gr.inputs.Slider(label="Width", default=256, minimum=32, step=32, maximum=512),
|
2345 |
gr.inputs.Slider(label="Height", default=256, minimum=32, step=32, maximum=512),
|
2346 |
+
gr.inputs.Dropdown(label="Style - any style but Hyper Fast Results need more steps than the default",choices=["Default","Balanced","Detailed","Consistent Creativity","Realistic","Smooth","Subtle MSE","Hyper Fast Results"],default="Hyper Fast Results"),
|
2347 |
+
gr.inputs.Slider(label="Steps - more steps can increase quality but will take longer to generate",default=50,maximum=300,minimum=1,step=1),
|
2348 |
+
gr.inputs.Dropdown(label="Flavor - pick a flavor for the style of the images, based on the images below",choices=["ginger", "cumin", "holywater", "zynth", "wyvern", "aaron", "moth", "juu"]),
|
2349 |
+
markdown
|
2350 |
],
|
2351 |
outputs=image,
|
2352 |
title="Generate images from text with VQGAN+CLIP (Hypertron v2)",
|