Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -76,11 +76,11 @@ def text_to_image(prompt, height, width, seed, num_inference_steps,
|
|
76 |
time.sleep(5)
|
77 |
return None
|
78 |
|
79 |
-
def infer(prompt, seed=42, randomize_seed=
|
80 |
if randomize_seed:
|
81 |
seed = random.randint(0, MAX_SEED)
|
82 |
image = text_to_image(
|
83 |
-
|
84 |
height=height,
|
85 |
width=width,
|
86 |
seed=seed,
|
|
|
76 |
time.sleep(5)
|
77 |
return None
|
78 |
|
79 |
+
def infer(prompt, seed=42, randomize_seed=True, width=1024, height=1024, num_inference_steps=4, progress=gr.Progress(track_tqdm=True)):
|
80 |
if randomize_seed:
|
81 |
seed = random.randint(0, MAX_SEED)
|
82 |
image = text_to_image(
|
83 |
+
prompt,
|
84 |
height=height,
|
85 |
width=width,
|
86 |
seed=seed,
|