vibs08 commited on
Commit
f82e61c
1 Parent(s): 7e7ca67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -267,8 +267,8 @@ def step_3_display_3d_model(mesh_file):
267
  return mesh_file
268
 
269
  def upload_file_to_s3(file_path, bucket_name, object_name):
270
- if s3_client.upload_file(file_path, bucket_name, object_name):
271
- return True
272
 
273
 
274
 
@@ -295,10 +295,7 @@ async def upload_image(file: UploadFile = File(...)):
295
  object_name = f'frameobject_{timestamp}.obj'
296
 
297
  if upload_file_to_s3(obj_file_output, 'framebucket3d',object_name):
298
-
299
- return {
300
- "obj_path": f"https://framebucket3d.s3.amazonaws.com/{object_name}"
301
- }
302
 
303
 
304
 
 
267
  return mesh_file
268
 
269
  def upload_file_to_s3(file_path, bucket_name, object_name):
270
+ s3_client.upload_file(file_path, bucket_name, object_name)
271
+ return True
272
 
273
 
274
 
 
295
  object_name = f'frameobject_{timestamp}.obj'
296
 
297
  if upload_file_to_s3(obj_file_output, 'framebucket3d',object_name):
298
+ return { "obj_path": f"https://framebucket3d.s3.amazonaws.com/{object_name}" }
 
 
 
299
 
300
 
301