JMalott commited on
Commit
5b9df98
1 Parent(s): 3095ffa

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +12 -3
utils.py CHANGED
@@ -71,6 +71,11 @@ def layout(*args):
71
 
72
  def footer():
73
  myargs = [
 
 
 
 
 
74
  "Created by ",
75
  link("https://jonathanmalott.com", "Jonathan Malott"),
76
  br(),
@@ -108,18 +113,22 @@ def generate2(prompt,crazy,k):
108
  dtype=torch.float32,
109
  device='cpu',
110
  is_mega=False,
111
- is_reusable=False
112
  )
113
 
 
 
 
 
114
 
115
  image = mm.generate_image(
116
- text=prompt,
117
  seed=np.random.randint(0,10000),
118
  grid_size=1,
119
  is_seamless=False,
120
  temperature=crazy,
121
  top_k=k,#2128,
122
- supercondition_factor=16,
123
  is_verbose=False
124
  )
125
 
 
71
 
72
  def footer():
73
  myargs = [
74
+ "This app uses the ",
75
+ link("https://github.com/kuprel/min-dalle", "min(DALL·E)"),
76
+ " port of ",
77
+ link("https://github.com/borisdayma/dalle-mini", "DALL·E mini"),
78
+ br(),
79
  "Created by ",
80
  link("https://jonathanmalott.com", "Jonathan Malott"),
81
  br(),
 
113
  dtype=torch.float32,
114
  device='cpu',
115
  is_mega=False,
116
+ is_reusable=True
117
  )
118
 
119
+ # Sampling
120
+ newPrompt = prompt
121
+ if("architecture" not in prompt.lower() ):
122
+ newPrompt += " architecture"
123
 
124
  image = mm.generate_image(
125
+ text=newPrompt,
126
  seed=np.random.randint(0,10000),
127
  grid_size=1,
128
  is_seamless=False,
129
  temperature=crazy,
130
  top_k=k,#2128,
131
+ supercondition_factor=32,
132
  is_verbose=False
133
  )
134