fix networking UI again + tweaks to pipeline script
This commit is contained in:
@@ -87,6 +87,9 @@ def image_to_3d_api(image_path, output_path):
|
||||
base64_encoded = base64.b64encode(image_data).decode('utf-8')
|
||||
model_binary = generate_no_preview(base64_encoded)
|
||||
|
||||
with open(output_path, 'wb') as f:
|
||||
output_file = f"{output_path}.glb"
|
||||
with open(output_file, 'wb') as f:
|
||||
f.write(model_binary)
|
||||
|
||||
return output_file
|
||||
|
||||
@@ -38,9 +38,9 @@ def main():
|
||||
text_to_image(image_generation_prompt, image_path)
|
||||
print(f"Generated image file: {image_path}")
|
||||
model_path = pipeline_folder / "models" / timestamp
|
||||
image_to_3d_api(image_path, model_path)
|
||||
model_file = image_to_3d_api(image_path, model_path)
|
||||
#model_file_path = model_path / "0" / "mesh.glb"
|
||||
print(f"Generated 3D model file: {model_path}")
|
||||
print(f"Generated 3D model file: {model_file}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user