dkatz2391 commited on
Commit
03eba6b
·
verified ·
1 Parent(s): 1391e5a

updated endpoints

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -238,9 +238,9 @@ def generate_model_from_images_and_upload(
238
  with open(temp_glb_path, "rb") as f:
239
  files = {"modelFile": (temp_glb_filename, f, "model/gltf-binary")}
240
  payload = {
241
- "clientType": "playcanvas",
242
- "prompt": upload_prompt_name,
243
- "modelStage": "imagen_trellis_tpose"
244
  }
245
  print(f"Upload payload to Node.js: {payload}")
246
  response = requests.post(NODE_SERVER_UPLOAD_URL, files=files, data=payload, timeout=120)
 
238
  with open(temp_glb_path, "rb") as f:
239
  files = {"modelFile": (temp_glb_filename, f, "model/gltf-binary")}
240
  payload = {
241
+ "clientType": "imagen",
242
+ "prompt": "imagen_generated_model",
243
+ "modelStage": "imagen_mesh"
244
  }
245
  print(f"Upload payload to Node.js: {payload}")
246
  response = requests.post(NODE_SERVER_UPLOAD_URL, files=files, data=payload, timeout=120)