Update app.py
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ def generate(
|
|
101 |
).images
|
102 |
paths = save_images(result, profile, metadata={"prompt": prompt, "seed": seed, "width": width, "height": height, "guidance_scale": guidance_scale, "num_inference_steps": num_inference_steps})
|
103 |
print(time.time() - start_time)
|
104 |
-
return paths, seed
|
105 |
|
106 |
examples = [
|
107 |
"portrait photo of a girl, photograph, highly detailed face, depth of field, moody light, golden hour, style by Dan Winters, Russell James, Steve McCurry, centered, extremely detailed, Nikon D850, award winning photography",
|
@@ -125,7 +125,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
125 |
placeholder="Enter your prompt",
|
126 |
max_lines=1,
|
127 |
container=False,
|
128 |
-
|
129 |
)
|
130 |
with gr.Group():
|
131 |
with gr.Row():
|
@@ -183,7 +183,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
183 |
inputs=[
|
184 |
prompt,
|
185 |
seed,
|
186 |
-
|
187 |
guidance_scale,
|
188 |
num_inference_steps,
|
189 |
randomize_seed
|
|
|
101 |
).images
|
102 |
paths = save_images(result, profile, metadata={"prompt": prompt, "seed": seed, "width": width, "height": height, "guidance_scale": guidance_scale, "num_inference_steps": num_inference_steps})
|
103 |
print(time.time() - start_time)
|
104 |
+
return paths, seed, url
|
105 |
|
106 |
examples = [
|
107 |
"portrait photo of a girl, photograph, highly detailed face, depth of field, moody light, golden hour, style by Dan Winters, Russell James, Steve McCurry, centered, extremely detailed, Nikon D850, award winning photography",
|
|
|
125 |
placeholder="Enter your prompt",
|
126 |
max_lines=1,
|
127 |
container=False,
|
128 |
+
interactive=False,
|
129 |
)
|
130 |
with gr.Group():
|
131 |
with gr.Row():
|
|
|
183 |
inputs=[
|
184 |
prompt,
|
185 |
seed,
|
186 |
+
url,
|
187 |
guidance_scale,
|
188 |
num_inference_steps,
|
189 |
randomize_seed
|