添加项目说明文件
This commit is contained in:
27
README.md
Normal file
27
README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# 福村宝照片审核AI辅助
|
||||
|
||||
本项目使用PaddleNLP等技术为照片审核提供初步的信息抽取功能
|
||||
|
||||
## 项目启动
|
||||
|
||||
1. 安装Python环境,可以选择Anaconda安装,减少环境冲突
|
||||
|
||||
2. Gitea或其他远程仓库克隆项目到本地
|
||||
|
||||
3. 安装所需依赖,进入项目根目录执行以下代码
|
||||
|
||||
```bash
|
||||
pip install -r requirement.txt
|
||||
```
|
||||
|
||||
4. 通过main.py启动项目,可以在Pycharm启动,或进入项目根目录执行以下代码
|
||||
|
||||
```bash
|
||||
python main.py
|
||||
```
|
||||
|
||||
## 开发说明
|
||||
|
||||
1. 使用sqlalchemy作为ORM框架,需要新增实体类时运行项目根目录下的auto_generator.py
|
||||
2. 项目运行中奔溃时有发送邮件提醒功能,请在config/email.py中的收件人处添加自己的邮箱
|
||||
|
||||
2
main.py
2
main.py
@@ -9,12 +9,12 @@ from photo_review.photo_review import main
|
||||
if __name__ == '__main__':
|
||||
logging.config.dictConfig(LOGGING_CONFIG)
|
||||
log = logging.getLogger()
|
||||
log.info("照片审核开始")
|
||||
|
||||
# 崩溃后的重试次数
|
||||
retry_time = 2
|
||||
for _ in range(++retry_time):
|
||||
try:
|
||||
log.info("照片审核开始")
|
||||
main()
|
||||
except Exception as e:
|
||||
log.error(traceback.format_exc())
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
paddlenlp==2.6.1
|
||||
sqlacodegen==2.3.0.post1
|
||||
sqlalchemy==1.4.52
|
||||
ufile==3.2.9
|
||||
|
||||
Reference in New Issue
Block a user