next-playground commited on
Commit
f28e0b0
1 Parent(s): 86e147f

Update flask_api_full_song.py

Browse files
Files changed (1) hide show
  1. flask_api_full_song.py +2 -2
flask_api_full_song.py CHANGED
@@ -26,7 +26,7 @@ response1 = client.get_object(
26
  )
27
 
28
  with open("/tmp/G_full.pth", 'wb') as local_file:
29
- for chunk in response1['Body'].iter_chunks():
30
  local_file.write(chunk)
31
 
32
  response2 = client.get_object(
@@ -35,7 +35,7 @@ response2 = client.get_object(
35
  )
36
 
37
  with open("/tmp/config.json", 'wb') as local_file:
38
- for chunk in response2['Body'].iter_chunks():
39
  local_file.write(chunk)
40
 
41
  model_name = "/tmp/G_full.pth" # 模型地址
 
26
  )
27
 
28
  with open("/tmp/G_full.pth", 'wb') as local_file:
29
+ for chunk in response1['Body'].iter_content(chunk_size=1024):
30
  local_file.write(chunk)
31
 
32
  response2 = client.get_object(
 
35
  )
36
 
37
  with open("/tmp/config.json", 'wb') as local_file:
38
+ for chunk in response2['Body'].iter_content(chunk_size=1024):
39
  local_file.write(chunk)
40
 
41
  model_name = "/tmp/G_full.pth" # 模型地址