Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -181,8 +181,8 @@ def generate(image, mc_resolution, formats=["obj", "glb"]):
|
|
181 |
|
182 |
return mesh_path_obj.name, mesh_path_glb.name
|
183 |
|
184 |
-
def run_example(text_prompt, do_remove_background, foreground_ratio, mc_resolution):
|
185 |
-
image_pil = generate_image_from_text(text_prompt)
|
186 |
preprocessed = preprocess(image_pil, do_remove_background, foreground_ratio)
|
187 |
mesh_name_obj, mesh_name_glb = generate(preprocessed, mc_resolution, ["obj", "glb"])
|
188 |
return preprocessed, mesh_name_obj, mesh_name_glb
|
|
|
181 |
|
182 |
return mesh_path_obj.name, mesh_path_glb.name
|
183 |
|
184 |
+
def run_example(image, text_prompt, do_remove_background, foreground_ratio, mc_resolution):
|
185 |
+
image_pil = generate_image_from_text(encoded_image=image, pos_prompt=text_prompt)
|
186 |
preprocessed = preprocess(image_pil, do_remove_background, foreground_ratio)
|
187 |
mesh_name_obj, mesh_name_glb = generate(preprocessed, mc_resolution, ["obj", "glb"])
|
188 |
return preprocessed, mesh_name_obj, mesh_name_glb
|