vibs08 commited on
Commit
f8eb5c5
·
verified ·
1 Parent(s): 92a45ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -181,7 +181,7 @@ def generate(image, mc_resolution, formats=["obj", "glb"]):
181
  return mesh_path_obj.name, mesh_path_glb.name
182
 
183
  def run_example(image, seed, do_remove_background, foreground_ratio, mc_resolution, text_prompt=None):
184
- image_pil = generate_image_from_text(encoded_image=image, seed, pos_prompt=text_prompt)
185
  preprocessed = preprocess(image_pil, do_remove_background, foreground_ratio)
186
  mesh_name_obj, mesh_name_glb = generate(preprocessed, 256, ["obj", "glb"])
187
  return preprocessed, mesh_name_obj, mesh_name_glb
 
181
  return mesh_path_obj.name, mesh_path_glb.name
182
 
183
  def run_example(image, seed, do_remove_background, foreground_ratio, mc_resolution, text_prompt=None):
184
+ image_pil = generate_image_from_text(encoded_image=image, seed=seed, pos_prompt=text_prompt)
185
  preprocessed = preprocess(image_pil, do_remove_background, foreground_ratio)
186
  mesh_name_obj, mesh_name_glb = generate(preprocessed, 256, ["obj", "glb"])
187
  return preprocessed, mesh_name_obj, mesh_name_glb