dkatz2391 commited on
Commit
3ef270f
·
verified ·
1 Parent(s): 594238d

update for new data for make it animateble

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -227,7 +227,12 @@ def generate_and_extract_glb(
227
  try:
228
  with open(glb_path, "rb") as f:
229
  files = {"modelFile": (os.path.basename(glb_path), f, "model/gltf-binary")}
230
- payload = {"clientType": "playcanvas"}
 
 
 
 
 
231
  response = requests.post(NODE_SERVER_UPLOAD_URL, files=files, data=payload)
232
  response.raise_for_status()
233
  result = response.json()
 
227
  try:
228
  with open(glb_path, "rb") as f:
229
  files = {"modelFile": (os.path.basename(glb_path), f, "model/gltf-binary")}
230
+ payload = {
231
+ "clientType": "playcanvas",
232
+ "prompt": prompt,
233
+ "modelStage": "trellis_tpose"
234
+ }
235
+ logging.info(f"[{request_hash}] Upload payload: {payload}")
236
  response = requests.post(NODE_SERVER_UPLOAD_URL, files=files, data=payload)
237
  response.raise_for_status()
238
  result = response.json()