Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ else:
|
|
18 |
MAX_SEED = np.iinfo(np.int32).max
|
19 |
MAX_IMAGE_SIZE = 1024
|
20 |
|
21 |
-
def infer(prompt, negative_prompt,
|
22 |
|
23 |
if randomize_seed:
|
24 |
seed = random.randint(0, MAX_SEED)
|
@@ -59,11 +59,10 @@ with gr.Blocks(css=css) as demo:
|
|
59 |
|
60 |
with gr.Column(elem_id="col-container"):
|
61 |
gr.Markdown(f"""
|
62 |
-
#
|
63 |
-
Currently running on {power_device}.
|
64 |
""")
|
65 |
|
66 |
-
with gr.
|
67 |
|
68 |
prompt = gr.Text(
|
69 |
label="Prompt",
|
|
|
18 |
MAX_SEED = np.iinfo(np.int32).max
|
19 |
MAX_IMAGE_SIZE = 1024
|
20 |
|
21 |
+
def infer(prompt, negative_prompt, age, seed, randomize_seed, width, height, num_inference_steps):
|
22 |
|
23 |
if randomize_seed:
|
24 |
seed = random.randint(0, MAX_SEED)
|
|
|
59 |
|
60 |
with gr.Column(elem_id="col-container"):
|
61 |
gr.Markdown(f"""
|
62 |
+
# Birthday event design {power_device}.
|
|
|
63 |
""")
|
64 |
|
65 |
+
with gr.Column():
|
66 |
|
67 |
prompt = gr.Text(
|
68 |
label="Prompt",
|