dkatz2391 commited on
Commit
bd7d765
·
verified ·
1 Parent(s): 6c43284
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -227,7 +227,10 @@ 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
+ }
234
  response = requests.post(NODE_SERVER_UPLOAD_URL, files=files, data=payload)
235
  response.raise_for_status()
236
  result = response.json()