Spaces:
Running
on
Zero
Running
on
Zero
renaming
Browse files
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 = {
|
|
|
|
|
|
|
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()
|