Spaces:
Sleeping
Sleeping
Download setup.py from Swaraj2003/smarttrip_ai: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/spaces/Swaraj2003/smarttrip_ai/resolve/main/setup.py
- Command line
-
hf download hf://spaces/Swaraj2003/smarttrip_ai/setup.py
-
curl -L -o setup.py https://huggingface.co/spaces/Swaraj2003/smarttrip_ai/resolve/main/setup.py
1.08 kB
| from setuptools import find_packages,setup | |
| from typing import List | |
| def get_requirements()->List[str]: | |
| """ | |
| This function will return list of requirements | |
| """ | |
| requirement_list:List[str] = [] | |
| try: | |
| # Open and read the requirements.txt file | |
| with open('requirements.txt', 'r') as file: | |
| # Read lines from the file | |
| lines = file.readlines() | |
| # Process each line | |
| for line in lines: | |
| # Strip whitespace and newline characters | |
| requirement = line.strip() | |
| # Ignore empty lines and -e . | |
| if requirement and requirement != '-e .': | |
| requirement_list.append(requirement) | |
| except FileNotFoundError: | |
| print("requirements.txt file not found.") | |
| return requirement_list | |
| print(get_requirements()) | |
| setup( | |
| name="AI-TRAVEL-PLANNER", | |
| version="0.0.1", | |
| author="sunny savita", | |
| author_email="snshrivas3365@gmail.com", | |
| packages = find_packages(), | |
| install_requires=get_requirements() | |
| ) |