Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,27 +52,11 @@ downscaler = FnNode(
|
|
| 52 |
},
|
| 53 |
)
|
| 54 |
|
| 55 |
-
flux_enhancer = InferenceNode(
|
| 56 |
-
model="black-forest-labs/FLUX.2-klein-4B:replicate",
|
| 57 |
-
inputs={
|
| 58 |
-
"image": downscaler.image,
|
| 59 |
-
"prompt": gr.Textbox(
|
| 60 |
-
label="prompt",
|
| 61 |
-
value=("Transform this into a clean 3D asset render"),
|
| 62 |
-
lines=3,
|
| 63 |
-
),
|
| 64 |
-
},
|
| 65 |
-
outputs={
|
| 66 |
-
"image": gr.Image(label="3D-Ready Enhanced Image"),
|
| 67 |
-
},
|
| 68 |
-
)
|
| 69 |
-
|
| 70 |
-
|
| 71 |
trellis_3d = GradioNode(
|
| 72 |
"microsoft/TRELLIS.2",
|
| 73 |
api_name="/image_to_3d",
|
| 74 |
inputs={
|
| 75 |
-
"image":
|
| 76 |
"ss_guidance_strength": 7.5,
|
| 77 |
"ss_sampling_steps": 12,
|
| 78 |
},
|
|
@@ -83,7 +67,7 @@ trellis_3d = GradioNode(
|
|
| 83 |
|
| 84 |
graph = Graph(
|
| 85 |
name="Image to 3D Asset Pipeline",
|
| 86 |
-
nodes=[background_remover, downscaler,
|
| 87 |
)
|
| 88 |
|
| 89 |
|
|
|
|
| 52 |
},
|
| 53 |
)
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
trellis_3d = GradioNode(
|
| 56 |
"microsoft/TRELLIS.2",
|
| 57 |
api_name="/image_to_3d",
|
| 58 |
inputs={
|
| 59 |
+
"image": downscaler.image,
|
| 60 |
"ss_guidance_strength": 7.5,
|
| 61 |
"ss_sampling_steps": 12,
|
| 62 |
},
|
|
|
|
| 67 |
|
| 68 |
graph = Graph(
|
| 69 |
name="Image to 3D Asset Pipeline",
|
| 70 |
+
nodes=[background_remover, downscaler, trellis_3d],
|
| 71 |
)
|
| 72 |
|
| 73 |
|