ver Dec20th

some adaptations to make in run on my device
This commit is contained in:
David Chang
2023-12-20 20:14:39 +08:00
parent b7267fac07
commit b37df609b9
13 changed files with 21 additions and 11 deletions

View File

@@ -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:

View File

@@ -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: