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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user