5m4ck3r commited on
Commit
837a56e
·
verified ·
1 Parent(s): d7afca6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=False, 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
- "A girl and a boy dancing in the forest",
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,