analysis / gr.py
abdelkader9090's picture
Initial release
e67ded9
Raw History Blame Contribute Delete
559 Bytes
from gradio_client import Client, handle_file
client = Client("frogleo/Image-to-3D")
result = client.predict(
image=handle_file(
r"C:\Users\zbook 17 g3\Desktop\15.05.2026_10.37.20_REC.png"
),
steps=5,
guidance_scale=5.5,
seed=1234,
octree_resolution=256,
num_chunks=8000,
target_face_num=10000,
randomize_seed=True,
api_name="/gen_shape"
)
glb_url = "https://frogleo-image-to-3d.hf.space" + result[2]
obj_url = "https://frogleo-image-to-3d.hf.space" + result[3]
print("GLB:", glb_url)
print("OBJ:", obj_url)