Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,11 +36,12 @@ example_images = [
|
|
| 36 |
str(Path('example_images/example_5.jpg'))
|
| 37 |
]
|
| 38 |
|
| 39 |
-
# Optional: FAL generation logging
|
| 40 |
def on_queue_update(update):
|
| 41 |
if isinstance(update, fal_client.InProgress):
|
| 42 |
for log in update.logs:
|
| 43 |
print(log["message"])
|
|
|
|
|
|
|
| 44 |
|
| 45 |
# Processing function
|
| 46 |
def process_image(img):
|
|
|
|
| 36 |
str(Path('example_images/example_5.jpg'))
|
| 37 |
]
|
| 38 |
|
|
|
|
| 39 |
def on_queue_update(update):
|
| 40 |
if isinstance(update, fal_client.InProgress):
|
| 41 |
for log in update.logs:
|
| 42 |
print(log["message"])
|
| 43 |
+
else:
|
| 44 |
+
print("Received non-InProgress update:", update)
|
| 45 |
|
| 46 |
# Processing function
|
| 47 |
def process_image(img):
|