hysts HF staff commited on
Commit
4f0bfe0
1 Parent(s): 11dad4e

Return seeds in text format (temporary workaround)

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -138,7 +138,9 @@ def run(
138
  ncols * image_size, 3)
139
  seeds = np.asarray(seeds).reshape(nrows, ncols)
140
 
141
- return res, seeds
 
 
142
 
143
 
144
  def main():
@@ -177,6 +179,7 @@ def main():
177
  [
178
  gr.outputs.Image(type='numpy', label='Output'),
179
  gr.outputs.Dataframe(type='numpy', label='Seed'),
 
180
  ],
181
  examples=examples,
182
  title=TITLE,
 
138
  ncols * image_size, 3)
139
  seeds = np.asarray(seeds).reshape(nrows, ncols)
140
 
141
+ seed_text = ', '.join(list(map(str, seeds.ravel().tolist())))
142
+
143
+ return res, seeds, seed_text
144
 
145
 
146
  def main():
 
179
  [
180
  gr.outputs.Image(type='numpy', label='Output'),
181
  gr.outputs.Dataframe(type='numpy', label='Seed'),
182
+ gr.outputs.Textbox(label='Seed (text)'),
183
  ],
184
  examples=examples,
185
  title=TITLE,