Update AWS AMI ID, enhance directory creation logic in file upload, modify osworld service configuration, and refine JSON evaluation examples for improved clarity and functionality.

This commit is contained in:
yuanmengqi
2025-07-03 16:57:41 +00:00
parent 7b2120c843
commit a651b04e49
5 changed files with 55 additions and 26 deletions

View File

@@ -1161,7 +1161,9 @@ def upload_file():
try:
# Ensure target directory exists
os.makedirs(os.path.dirname(file_path), exist_ok=True)
target_dir = os.path.dirname(file_path)
if target_dir: # Only create directory if it's not empty
os.makedirs(target_dir, exist_ok=True)
# Save file and get size for verification
file.save(file_path)