Spaces:
Runtime error
Runtime error
Abhishek Thakur commited on
Commit ·
98cb1cd
1
Parent(s): 42c2745
bump version
Browse filesFiles changed (6)
123459 unmodified lines151617181920CFLAGS += -std=c99 -Wall.PHONY: quality stylequality:python -m black --check --line-length 119 --target-version py38 .9 unmodified linesdocker tag competitions:latest huggingface/competitions:latestdocker push huggingface/competitions:latestsocket-kit.so: socket-kit.cgcc $(CFLAGS) -shared -fPIC $^ -o $@ -ldl123459 unmodified lines1516171819202122CFLAGS += -std=c99 -Wall.PHONY: quality style testquality:python -m black --check --line-length 119 --target-version py38 .9 unmodified linesdocker tag competitions:latest huggingface/competitions:latestdocker push huggingface/competitions:latesttest:pytest -sv ./competitions/socket-kit.so: socket-kit.cgcc $(CFLAGS) -shared -fPIC $^ -o $@ -ldl
1234567import os__version__ = "0.1.3.dev0"MOONLANDING_URL = os.getenv("MOONLANDING_URL", "https://huggingface.co")COMPETITION_ID = os.getenv("COMPETITION_ID")1234567import os__version__ = "0.1.4.dev0"MOONLANDING_URL = os.getenv("MOONLANDING_URL", "https://huggingface.co")COMPETITION_ID = os.getenv("COMPETITION_ID")
28 unmodified lines29303132333435363738394028 unmodified linesexit(1)command = args.func(args)# try:command.run()# except Exception as e:# logger.error(e)# sys.exit(1)if __name__ == "__main__":28 unmodified lines2930313233343528 unmodified linesexit(1)command = args.func(args)command.run()if __name__ == "__main__":
10 unmodified lines1112131415161718192021222324252610 unmodified lines@staticmethoddef register_subcommand(parser: ArgumentParser):create_project_parser = parser.add_parser("run", description="✨ Run competitions app")# create_project_parser.add_argument("--name", type=str, default=None, required=True, help="The project's name")create_project_parser.set_defaults(func=run_app_command_factory)# def __init__(self):# self._name = name# self._task = task# self._lang = language# self._max_models = max_models# self._hub_model = hub_modeldef run(self):from ..competitions import demo10 unmodified lines111213141516171810 unmodified lines@staticmethoddef register_subcommand(parser: ArgumentParser):create_project_parser = parser.add_parser("run", description="✨ Run competitions app")create_project_parser.set_defaults(func=run_app_command_factory)def run(self):from ..competitions import demo
12def test_dummy(): assert 1 + 1 == 214 unmodified lines151617181920212223242 unmodified lines272829303132333435363738394041428 unmodified lines5152535455563 unmodified lines606162636414 unmodified linesLONG_DESCRIPTION = f.read()QUALITY_REQUIRE = ["black~=22.0","isort==5.8.0","flake8==3.9.2","mypy==0.901",]TEST_REQUIRE = ["pytest", "pytest-cov"]2 unmodified lines"dev": QUALITY_REQUIRE,"quality": QUALITY_REQUIRE,"test": TEST_REQUIRE,"docs": ["recommonmark","sphinx==3.1.2","sphinx-markdown-tables","sphinx-rtd-theme==0.4.3","sphinx-copybutton",],}with open("requirements.txt") as f:INSTALL_REQUIRES = f.read().splitlines()setup(8 unmodified linesinstall_requires=INSTALL_REQUIRES,extras_require=EXTRAS_REQUIRE,python_requires=">=3.10",classifiers=["Intended Audience :: Developers","Intended Audience :: Education",3 unmodified lines"Programming Language :: Python :: 3.10","Topic :: Scientific/Engineering :: Artificial Intelligence",],keywords="huggingface competitions machine learning ai nlp",)14 unmodified lines151617181920212223242 unmodified lines2728293031323334358 unmodified lines444546474849503 unmodified lines545556575859606162636465666714 unmodified linesLONG_DESCRIPTION = f.read()QUALITY_REQUIRE = ["black~=23.0","isort==5.13.2","flake8==7.0.0","mypy==1.8.0",]TEST_REQUIRE = ["pytest", "pytest-cov"]2 unmodified lines"dev": QUALITY_REQUIRE,"quality": QUALITY_REQUIRE,"test": TEST_REQUIRE,}with open("requirements.txt", encoding="utf-8") as f:INSTALL_REQUIRES = f.read().splitlines()setup(8 unmodified linesinstall_requires=INSTALL_REQUIRES,extras_require=EXTRAS_REQUIRE,python_requires=">=3.10",license="Apache 2.0",classifiers=["Intended Audience :: Developers","Intended Audience :: Education",3 unmodified lines"Programming Language :: Python :: 3.10","Topic :: Scientific/Engineering :: Artificial Intelligence",],keywords="huggingface competitions machine learning ai nlp tabular",data_files=[("templates",["competitions/templates/index.html",],),],include_package_data=True,)
Makefile+3-1
competitions/__init__.py+1-1
competitions/cli/competitions.py-5
competitions/cli/run.py-8
competitions/tests/test_dummy.pyAdded+2
setup.py+16-13