jkorstad commited on
Commit
e060cc0
·
verified ·
1 Parent(s): 2b9f86c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -164,7 +164,7 @@ iface = gr.Interface(
164
  fn=rig_glb_mesh_multistep,
165
  inputs=gr.File(
166
  label="Upload .glb Mesh File",
167
- type="filepath" # Corrected type for Gradio 4.x / 5.x
168
  ),
169
  outputs=gr.Model3D(
170
  label="Rigged 3D Model (.glb)",
@@ -188,4 +188,4 @@ if __name__ == "__main__":
188
  if not os.path.isdir(UNIRIG_REPO_DIR):
189
  print(f"CRITICAL: UniRig repository not found at {UNIRIG_REPO_DIR}. Ensure it's cloned in the Space's root.")
190
 
191
- iface.launch()
 
164
  fn=rig_glb_mesh_multistep,
165
  inputs=gr.File(
166
  label="Upload .glb Mesh File",
167
+ type="filepath" # Corrected type for Gradio 5.x
168
  ),
169
  outputs=gr.Model3D(
170
  label="Rigged 3D Model (.glb)",
 
188
  if not os.path.isdir(UNIRIG_REPO_DIR):
189
  print(f"CRITICAL: UniRig repository not found at {UNIRIG_REPO_DIR}. Ensure it's cloned in the Space's root.")
190
 
191
+ iface.launch()