Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,7 +67,6 @@ def generate_prompts_for_object(object_name):
|
|
| 67 |
image_generation_tool = Tool.from_space(
|
| 68 |
#"KingNish/Realtime-FLUX",
|
| 69 |
"black-forest-labs/FLUX.1-schnell",
|
| 70 |
-
num_inference_steps=4,
|
| 71 |
api_name="/infer",
|
| 72 |
name="image_generator",
|
| 73 |
description="Generate an image from a prompt"
|
|
@@ -114,7 +113,7 @@ def generate_object_history(object_name):
|
|
| 114 |
)
|
| 115 |
|
| 116 |
if isinstance(result, (list, tuple)):
|
| 117 |
-
|
| 118 |
|
| 119 |
image = result.to_raw()
|
| 120 |
except Exception as e:
|
|
|
|
| 67 |
image_generation_tool = Tool.from_space(
|
| 68 |
#"KingNish/Realtime-FLUX",
|
| 69 |
"black-forest-labs/FLUX.1-schnell",
|
|
|
|
| 70 |
api_name="/infer",
|
| 71 |
name="image_generator",
|
| 72 |
description="Generate an image from a prompt"
|
|
|
|
| 113 |
)
|
| 114 |
|
| 115 |
if isinstance(result, (list, tuple)):
|
| 116 |
+
result = result[0]
|
| 117 |
|
| 118 |
image = result.to_raw()
|
| 119 |
except Exception as e:
|