Spaces:
orrinin
/
Runtime error

orrinin commited on
Commit
45ef37e
·
verified ·
1 Parent(s): 8e98b35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -133,7 +133,12 @@ def generate(
133
  fn_index=3
134
  )
135
  result = job.result()
136
- list_dir(result)
 
 
 
 
 
137
  return images, seed
138
 
139
  examples = [
 
133
  fn_index=3
134
  )
135
  result = job.result()
136
+
137
+ for root, dirs, files in os.walk(result):
138
+ for file in files:
139
+ if file.endswith('.jpg'):
140
+ images.append(os.path.json(root,file))
141
+
142
  return images, seed
143
 
144
  examples = [