forked from unitaryai/detoxify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
29 lines (26 loc) · 912 Bytes
/
setup.py
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
27
28
29
#!/usr/bin/env python
from setuptools import find_packages, setup
with open("README.md") as fh:
long_description = fh.read()
setup(
name="detoxify",
version="0.5.0",
description="A python library for detecting toxic comments",
long_description=long_description,
long_description_content_type="text/markdown",
author="Unitary",
author_email="[email protected]",
url="https://github.com/unitaryai/detoxify",
install_requires=[
"transformers != 4.18.0", # v4.18.0 fails to properly load the finetuned weights
"torch >= 1.7.0",
"sentencepiece >= 0.1.94",
],
packages=find_packages(include=["detoxify"], exclude=["tests", "src"]),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
)