Spaces:
Runtime error
Runtime error
template and requirement added
Browse filesFiles changed (20)
- .github/workflows/.gitkeepAdded
- .gitignore+3
- DockerfileAdded
- app.pyAdded
- config/config.yamlAdded
- main.pyAdded
- params.yamlAdded
- requirements.txtAdded+25
- research/trials.ipynbAdded
- setup.pyAdded+31
- src/imagecolorization/__init__.pyAdded
- src/imagecolorization/config/__init__.pyAdded
- src/imagecolorization/config/configuration.pyAdded
- src/imagecolorization/constants/__init__.pyAdded
- src/imagecolorization/entity/__init__.pyAdded
- src/imagecolorization/logging/__init__.pyAdded
- src/imagecolorization/pipeline/__init__.pyAdded
- src/imagecolorization/utils/__init__.pyAdded
- src/imagecolorization/utils/common.pyAdded
- template.pyAdded+49
159 unmodified lines160161162159 unmodified lines# and can be added to the global gitignore or merged into this file. For a more nuclear# option (not recommended) you can uncomment the following to ignore the entire idea folder.#.idea/159 unmodified lines160161162163164165159 unmodified lines# and can be added to the global gitignore or merged into this file. For a more nuclear# option (not recommended) you can uncomment the following to ignore the entire idea folder.#.idea/artifacts/*
12345678910111213141516171819202122232425datasetssacrebleu py7zrpandasnltktqdmPyYAMLmatplotlibnotebookboto3mypy-boto3-s3python-box==6.0.2ensure==1.0.2fastapi==0.78.0uvicorn==0.18.3Jinja2==3.1.2torchsummarypytorch-lightning==2.1.0opencv-python==4.8.0.74Pillow==10.0.0scikit-imagetqdm
-e .
12345678910111213141516171819202122232425262728293031import setuptools
with open('README.md', 'r', encoding='utf-8') as f: long_description = f.read() __version__ = '0.0.0'
REPO_NAME = "mage-colorization-mlops"AUTHOR_USER_NAME = "HAKIM-ML"SRC_REPO = "imagecolorization"AUTHOR_EMAIL = "akborislamamir5555@gmail.com"
setuptools.setup( name=SRC_REPO, version=__version__, author=AUTHOR_USER_NAME, author_email=AUTHOR_EMAIL, description="A small python package for NLP app", long_description=long_description, long_description_content="text/markdown", url=f"https://github.com/{AUTHOR_USER_NAME}/{REPO_NAME}", project_urls={ "Bug Tracker": f"https://github.com/{AUTHOR_USER_NAME}/{REPO_NAME}/issues", }, package_dir={"": "src"}, packages=setuptools.find_packages(where="src"))12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849import osfrom pathlib import Pathimport logging
logging.basicConfig(level=logging.INFO, format='[%(asctime)s]: %(message)s:')
project_name = 'imagecolorization'
list_of_files = [ '.github/workflows/.gitkeep', f"src/{project_name}/__init__.py", f"src/{project_name}/utils/__init__.py", f"src/{project_name}/utils/common.py", f"src/{project_name}/logging/__init__.py", f"src/{project_name}/config/__init__.py", f"src/{project_name}/config/configuration.py", f"src/{project_name}/pipeline/__init__.py", f"src/{project_name}/entity/__init__.py", f"src/{project_name}/constants/__init__.py", "config/config.yaml", "params.yaml", "app.py", "main.py", "Dockerfile", "requirements.txt", "setup.py", "research/trials.ipynb",]
for filepath in list_of_files: filpath = Path(filepath) filedir, filename = os.path.split(filepath) if filedir != "": os.makedirs(filedir, exist_ok=True) logging.info(f"Creatin directory:{filedir} for the {filename}") if (not os.path.exists(filepath)) or (os.path.getsize(filepath) == 0): with open(filepath, 'w') as f: pass logging.info(f'Creating empty file: {filepath}') else: logging.info(f'{filename} is already exist') .github/workflows/.gitkeepAdded
.gitignore+3
DockerfileAdded
app.pyAdded
config/config.yamlAdded
main.pyAdded
params.yamlAdded
requirements.txtAdded+25
research/trials.ipynbAdded
setup.pyAdded+31
src/imagecolorization/__init__.pyAdded
src/imagecolorization/config/__init__.pyAdded
src/imagecolorization/config/configuration.pyAdded
src/imagecolorization/constants/__init__.pyAdded
src/imagecolorization/entity/__init__.pyAdded
src/imagecolorization/logging/__init__.pyAdded
src/imagecolorization/pipeline/__init__.pyAdded
src/imagecolorization/utils/__init__.pyAdded
src/imagecolorization/utils/common.pyAdded
template.pyAdded+49