Update app.py
Browse files
app.py
CHANGED
|
@@ -87,6 +87,7 @@ def generate(
|
|
| 87 |
global num_images
|
| 88 |
|
| 89 |
seed = randomize_seed_fn(seed, randomize_seed)
|
|
|
|
| 90 |
np.random.seed(seed)
|
| 91 |
start_time = time.time()
|
| 92 |
result = pipe(
|
|
@@ -100,7 +101,7 @@ def generate(
|
|
| 100 |
).images
|
| 101 |
paths = save_images(result, profile, metadata={"prompt": prompt, "seed": seed, "width": width, "height": height, "guidance_scale": guidance_scale, "num_inference_steps": num_inference_steps})
|
| 102 |
print(time.time() - start_time)
|
| 103 |
-
return paths, seed,
|
| 104 |
|
| 105 |
examples = [
|
| 106 |
"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",
|
|
@@ -119,7 +120,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 119 |
with gr.Row():
|
| 120 |
url = gr.Text(
|
| 121 |
label="url",
|
| 122 |
-
|
| 123 |
show_label=False,
|
| 124 |
placeholder="Enter your prompt",
|
| 125 |
max_lines=1,
|
|
|
|
| 87 |
global num_images
|
| 88 |
|
| 89 |
seed = randomize_seed_fn(seed, randomize_seed)
|
| 90 |
+
url = "helloi"
|
| 91 |
np.random.seed(seed)
|
| 92 |
start_time = time.time()
|
| 93 |
result = pipe(
|
|
|
|
| 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",
|
|
|
|
| 120 |
with gr.Row():
|
| 121 |
url = gr.Text(
|
| 122 |
label="url",
|
| 123 |
+
value="Set Your Value",
|
| 124 |
show_label=False,
|
| 125 |
placeholder="Enter your prompt",
|
| 126 |
max_lines=1,
|