Spaces:
Configuration error
Configuration error
File size: 614 Bytes
d6e806a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import os
def create_project_structure():
# Define the directory structure
directories = [
'static/css',
'static/js',
'static/uploads',
'static/annotations',
'static/classified_results',
'templates',
'utils'
]
# Create directories
for directory in directories:
os.makedirs(directory, exist_ok=True)
print(f"Created directory: {directory}")
# Create empty __init__.py files
open('utils/__init__.py', 'a').close()
print("Created: utils/__init__.py")
if __name__ == "__main__":
create_project_structure()
|