Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -132,12 +132,12 @@ def get_random_seed(randomize_seed, seed):
|
|
| 132 |
return seed
|
| 133 |
|
| 134 |
@spaces.GPU(duration=180)
|
| 135 |
-
def
|
| 136 |
input_image_path,
|
| 137 |
input_mesh_path,
|
| 138 |
guidance_scale,
|
| 139 |
inference_steps,
|
| 140 |
-
seed,
|
| 141 |
reference_conditioning_scale,
|
| 142 |
req: gr.Request,
|
| 143 |
progress=gr.Progress(track_tqdm=True)
|
|
@@ -227,7 +227,7 @@ with gr.Blocks(title="Step1X-3D Texture Generator") as demo:
|
|
| 227 |
inputs=[randomize_seed_checkbox, seed_input],
|
| 228 |
outputs=[seed_input]
|
| 229 |
).then(
|
| 230 |
-
fn=
|
| 231 |
inputs=[
|
| 232 |
input_image,
|
| 233 |
input_mesh,
|
|
|
|
| 132 |
return seed
|
| 133 |
|
| 134 |
@spaces.GPU(duration=180)
|
| 135 |
+
def generate_texture(
|
| 136 |
input_image_path,
|
| 137 |
input_mesh_path,
|
| 138 |
guidance_scale,
|
| 139 |
inference_steps,
|
| 140 |
+
seed,
|
| 141 |
reference_conditioning_scale,
|
| 142 |
req: gr.Request,
|
| 143 |
progress=gr.Progress(track_tqdm=True)
|
|
|
|
| 227 |
inputs=[randomize_seed_checkbox, seed_input],
|
| 228 |
outputs=[seed_input]
|
| 229 |
).then(
|
| 230 |
+
fn=generate_texture,
|
| 231 |
inputs=[
|
| 232 |
input_image,
|
| 233 |
input_mesh,
|