Commit
·
a91a76e
1
Parent(s):
bb22190
Fix examples to include all input values
Browse files
app.py
CHANGED
|
@@ -267,10 +267,10 @@ def main():
|
|
| 267 |
"""Run the FaceLift application."""
|
| 268 |
pipeline = FaceLiftPipeline()
|
| 269 |
|
| 270 |
-
# Load examples
|
| 271 |
examples = []
|
| 272 |
if pipeline.examples_dir.exists():
|
| 273 |
-
examples = [[str(f)] for f in sorted(pipeline.examples_dir.iterdir())
|
| 274 |
if f.suffix.lower() in {'.png', '.jpg', '.jpeg'}]
|
| 275 |
|
| 276 |
# Create interface
|
|
|
|
| 267 |
"""Run the FaceLift application."""
|
| 268 |
pipeline = FaceLiftPipeline()
|
| 269 |
|
| 270 |
+
# Load examples - provide all 5 input values (image, auto_crop, guidance_scale, random_seed, num_steps)
|
| 271 |
examples = []
|
| 272 |
if pipeline.examples_dir.exists():
|
| 273 |
+
examples = [[str(f), True, 3.0, 4, 50] for f in sorted(pipeline.examples_dir.iterdir())
|
| 274 |
if f.suffix.lower() in {'.png', '.jpg', '.jpeg'}]
|
| 275 |
|
| 276 |
# Create interface
|