SeedOfEvil commited on
Commit
ac86146
·
verified ·
1 Parent(s): 6ba66b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,7 +15,7 @@ pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
15
  pipe = pipe.to(device)
16
 
17
  MAX_SEED = np.iinfo(np.int32).max
18
- MAX_IMAGE_SIZE = 2048
19
 
20
  def truncate_text(text, max_tokens=77):
21
  """
@@ -34,8 +34,8 @@ def infer(
34
  negative_prompt="",
35
  seed=42,
36
  randomize_seed=False,
37
- width=2048,
38
- height=2048,
39
  guidance_scale=4.5,
40
  num_inference_steps=40,
41
  progress=gr.Progress(track_tqdm=True),
 
15
  pipe = pipe.to(device)
16
 
17
  MAX_SEED = np.iinfo(np.int32).max
18
+ MAX_IMAGE_SIZE = 1024
19
 
20
  def truncate_text(text, max_tokens=77):
21
  """
 
34
  negative_prompt="",
35
  seed=42,
36
  randomize_seed=False,
37
+ width=1024,
38
+ height=1024,
39
  guidance_scale=4.5,
40
  num_inference_steps=40,
41
  progress=gr.Progress(track_tqdm=True),