vibs08 commited on
Commit
815f794
·
verified ·
1 Parent(s): 86058c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -25,7 +25,8 @@ import logging
25
  import os
26
  import boto3
27
  import uuid
28
-
 
29
  import datetime
30
 
31
  app = FastAPI()
@@ -279,7 +280,7 @@ async def upload_image(file: UploadFile = File(...)):
279
  obj_name = f"{uuid.uuid4()}.obj"
280
 
281
  # Upload the OBJ file to S3
282
- s3_url = save_file_to_s3(obj_file_path, bucket_name, obj_name)
283
 
284
  return JSONResponse(content={"Output": s3_url})
285
 
 
25
  import os
26
  import boto3
27
  import uuid
28
+ from fastapi import FastAPI, File, UploadFile, HTTPException
29
+ from fastapi.responses import JSONResponse
30
  import datetime
31
 
32
  app = FastAPI()
 
280
  obj_name = f"{uuid.uuid4()}.obj"
281
 
282
  # Upload the OBJ file to S3
283
+ s3_url = save_file_to_s3(obj_file_path, "framebucket3d", obj_name)
284
 
285
  return JSONResponse(content={"Output": s3_url})
286