Spaces:
Running
on
Zero
Running
on
Zero
updated endpoints
Browse files
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": "
|
| 242 |
-
"prompt":
|
| 243 |
-
"modelStage": "
|
| 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)
|