刘宇轩 commited on
Commit
c46bdbb
·
1 Parent(s): cf7eb80
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -135,7 +135,7 @@ def upload_to_oss(file_path, accessid, policy, signature, host, key, callback):
135
  'key': key,
136
  'callback': callback,
137
  }
138
- response = requests.post(host, files=files, data=data)
139
  if response.status_code == 204 or response.ok:
140
  return key
141
  else:
 
135
  'key': key,
136
  'callback': callback,
137
  }
138
+ response = requests.post(host, files=files, data=data, timeout=20)
139
  if response.status_code == 204 or response.ok:
140
  return key
141
  else: