Spaces:
Paused
Paused
Maksymilian Jankowski commited on
Commit ·
a69a40e
1
Parent(s): 9e5b590
texture for images for now
Browse files- routers/user_models.py +4 -4
routers/user_models.py
CHANGED
|
@@ -175,7 +175,7 @@ async def text_to_3d(prompt: TextPrompt, current_user: User = Depends(get_curren
|
|
| 175 |
"status": "IN_PROGRESS",
|
| 176 |
"user_id": current_user.id,
|
| 177 |
"meshy_api_job_id": None,
|
| 178 |
-
"model_name": f"
|
| 179 |
"prompts_and_models_config": {
|
| 180 |
"generation_type": "text_to_3d",
|
| 181 |
"original_prompt": prompt.text,
|
|
@@ -312,7 +312,7 @@ async def image_to_3d(request: ImageTo3DRequest, background_tasks: BackgroundTas
|
|
| 312 |
"status": "IN_PROGRESS",
|
| 313 |
"user_id": current_user.id,
|
| 314 |
"meshy_api_job_id": None,
|
| 315 |
-
"model_name": f"
|
| 316 |
"prompts_and_models_config": {
|
| 317 |
"generation_type": "image_to_3d",
|
| 318 |
"input_image_url": request.image_url,
|
|
@@ -404,7 +404,7 @@ async def image_to_3d_upload(
|
|
| 404 |
"status": "IN_PROGRESS",
|
| 405 |
"user_id": current_user.id,
|
| 406 |
"meshy_api_job_id": None,
|
| 407 |
-
"model_name": f"
|
| 408 |
"prompts_and_models_config": {
|
| 409 |
"generation_type": "image_to_3d",
|
| 410 |
"input_image_filename": file.filename,
|
|
@@ -426,7 +426,7 @@ async def image_to_3d_upload(
|
|
| 426 |
"image_url": data_uri,
|
| 427 |
"mode": "preview",
|
| 428 |
"ai_model": "meshy-5",
|
| 429 |
-
"should_texture": False,
|
| 430 |
}
|
| 431 |
|
| 432 |
async with httpx.AsyncClient(timeout=30.0) as client:
|
|
|
|
| 175 |
"status": "IN_PROGRESS",
|
| 176 |
"user_id": current_user.id,
|
| 177 |
"meshy_api_job_id": None,
|
| 178 |
+
"model_name": f"{prompt.text[:50]}{'...' if len(prompt.text) > 50 else ''}",
|
| 179 |
"prompts_and_models_config": {
|
| 180 |
"generation_type": "text_to_3d",
|
| 181 |
"original_prompt": prompt.text,
|
|
|
|
| 312 |
"status": "IN_PROGRESS",
|
| 313 |
"user_id": current_user.id,
|
| 314 |
"meshy_api_job_id": None,
|
| 315 |
+
"model_name": f"{request.image_url.split('/')[-1][:50]}",
|
| 316 |
"prompts_and_models_config": {
|
| 317 |
"generation_type": "image_to_3d",
|
| 318 |
"input_image_url": request.image_url,
|
|
|
|
| 404 |
"status": "IN_PROGRESS",
|
| 405 |
"user_id": current_user.id,
|
| 406 |
"meshy_api_job_id": None,
|
| 407 |
+
"model_name": f"{file.filename}",
|
| 408 |
"prompts_and_models_config": {
|
| 409 |
"generation_type": "image_to_3d",
|
| 410 |
"input_image_filename": file.filename,
|
|
|
|
| 426 |
"image_url": data_uri,
|
| 427 |
"mode": "preview",
|
| 428 |
"ai_model": "meshy-5",
|
| 429 |
+
#"should_texture": False,
|
| 430 |
}
|
| 431 |
|
| 432 |
async with httpx.AsyncClient(timeout=30.0) as client:
|