Update app.py
Browse files
app.py
CHANGED
|
@@ -125,9 +125,13 @@ def process_image(img, generate_image=True):
|
|
| 125 |
|
| 126 |
# Use fal-client to generate image
|
| 127 |
result = fal_client.subscribe(
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
)
|
| 132 |
|
| 133 |
# Get the image from the result
|
|
|
|
| 125 |
|
| 126 |
# Use fal-client to generate image
|
| 127 |
result = fal_client.subscribe(
|
| 128 |
+
"fal-ai/flux/dev",
|
| 129 |
+
arguments={
|
| 130 |
+
"prompt": random.choice(prompt_templates).format(flower=predicted_class),
|
| 131 |
+
"image_size": "portrait_4_3"
|
| 132 |
+
},
|
| 133 |
+
with_logs=True,
|
| 134 |
+
on_queue_update=on_queue_update,
|
| 135 |
)
|
| 136 |
|
| 137 |
# Get the image from the result
|