ver Dec20th
some adaptations to make in run on my device
This commit is contained in:
@@ -154,7 +154,7 @@ class DesktopEnv(gym.Env):
|
||||
_path = os.path.join("tmp", random_uuid, "tmp.xlsx")
|
||||
if _file_info["type"] == "cloud_file":
|
||||
url = _file_info["path"]
|
||||
response = requests.get(url, stream=True)
|
||||
response = requests.get(url, stream=True, verify=False)
|
||||
response.raise_for_status()
|
||||
|
||||
with open(_path, 'wb') as f:
|
||||
|
||||
@@ -151,7 +151,7 @@ def download_file():
|
||||
max_retries = 3
|
||||
for i in range(max_retries):
|
||||
try:
|
||||
response = requests.get(url, stream=True)
|
||||
response = requests.get(url, stream=True, verify=False)
|
||||
response.raise_for_status()
|
||||
|
||||
with open(path, 'wb') as f:
|
||||
|
||||
Reference in New Issue
Block a user