Skip to content

Commit

Permalink
feat:添加mt-photos-ai到列表
Browse files Browse the repository at this point in the history
  • Loading branch information
okxlin committed Dec 12, 2024
1 parent 66f7b7d commit 793c267
Show file tree
Hide file tree
Showing 12 changed files with 159 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/mt-photos-ai/1.2.0/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
API_AUTH_KEY="mt_photos_ai_extra_secret"
CONTAINER_NAME="mt-photos-ai"
PANEL_APP_PORT_HTTP=40335
19 changes: 19 additions & 0 deletions apps/mt-photos-ai/1.2.0/data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
additionalProperties:
formFields:
- default: "40335"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "mt_photos_ai_extra_secret"
edit: true
envKey: API_AUTH_KEY
labelEn: API Auth Key
labelZh: API 授权密钥
random: true
required: true
rule: paramComplexity
type: password
23 changes: 23 additions & 0 deletions apps/mt-photos-ai/1.2.0/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
services:
mt-photos-ai:
image: "mtphotos/mt-photos-ai:1.2.0"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:8060"
environment:
- API_AUTH_KEY=${API_AUTH_KEY}
runtime: nvidia
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
labels:
createdBy: "Apps"

networks:
1panel-network:
external: true
4 changes: 4 additions & 0 deletions apps/mt-photos-ai/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# MT Photos AI 识别相关任务独立部署项目

- 基于PaddleOCR实现的文本识别(OCR)接口
- 基于Chinese-CLIP(OpenAI CLIP模型的中文版本)实现的图片、文本提取特征接口
21 changes: 21 additions & 0 deletions apps/mt-photos-ai/data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: MT Photos AI
tags:
- 多媒体
- AI / 大模型
title: MT Photos AI 相关的独立服务
description: MT Photos AI 相关的独立服务
additionalProperties:
key: mt-photos-ai
name: MT Photos AI
tags:
- Media
- AI
shortDescZh: MT Photos AI 相关的独立服务
shortDescEn: MT Photos AI-related standalone services
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://mtmt.tech
github: https://github.com/MT-Photos/mt-photos-ai
document: https://mtmt.tech
3 changes: 3 additions & 0 deletions apps/mt-photos-ai/latest-onnx/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
API_AUTH_KEY="mt_photos_ai_extra_secret"
CONTAINER_NAME="mt-photos-ai"
PANEL_APP_PORT_HTTP=40335
19 changes: 19 additions & 0 deletions apps/mt-photos-ai/latest-onnx/data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
additionalProperties:
formFields:
- default: "40335"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "mt_photos_ai_extra_secret"
edit: true
envKey: API_AUTH_KEY
labelEn: API Auth Key
labelZh: API 授权密钥
random: true
required: true
rule: paramComplexity
type: password
22 changes: 22 additions & 0 deletions apps/mt-photos-ai/latest-onnx/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
services:
mt-photos-ai:
image: "mtphotos/mt-photos-ai:onnx-latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:8060"
environment:
- API_AUTH_KEY=${API_AUTH_KEY}
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
labels:
createdBy: "Apps"

networks:
1panel-network:
external: true
3 changes: 3 additions & 0 deletions apps/mt-photos-ai/latest/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
API_AUTH_KEY="mt_photos_ai_extra_secret"
CONTAINER_NAME="mt-photos-ai"
PANEL_APP_PORT_HTTP=40335
19 changes: 19 additions & 0 deletions apps/mt-photos-ai/latest/data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
additionalProperties:
formFields:
- default: "40335"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "mt_photos_ai_extra_secret"
edit: true
envKey: API_AUTH_KEY
labelEn: API Auth Key
labelZh: API 授权密钥
random: true
required: true
rule: paramComplexity
type: password
23 changes: 23 additions & 0 deletions apps/mt-photos-ai/latest/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
services:
mt-photos-ai:
image: "mtphotos/mt-photos-ai:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:8060"
environment:
- API_AUTH_KEY=${API_AUTH_KEY}
runtime: nvidia
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
labels:
createdBy: "Apps"

networks:
1panel-network:
external: true
Binary file added apps/mt-photos-ai/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 793c267

Please sign in to comment.