https://github.com/chatlunalab/gradio-service
为 Koishi 提供简易的 @gradio/client 支持
https://github.com/chatlunalab/gradio-service
Last synced: 3 months ago
JSON representation
为 Koishi 提供简易的 @gradio/client 支持
- Host: GitHub
- URL: https://github.com/chatlunalab/gradio-service
- Owner: ChatLunaLab
- License: mit
- Created: 2024-08-28T18:47:25.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-12-07T10:38:56.000Z (6 months ago)
- Last Synced: 2025-03-10T08:04:45.517Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 119 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# koishi-plugin-gradio-service
_提供 @gradio/client 支持_
## [](https://www.npmjs.com/package/koishi-plugin-gradio-service) [](https://www.npmjs.com/package/koishi-plugin-gradio-service)  
## 特性
Fork 自 [@gradio/client](https://github.com/gradio-app/gradio/tree/2b6cbf25908e42cf027324e54ef2cc0baad11a91/client/js)
为了体积,移除了一部分代码,其中以下功能未实现:
- duplicate
- 心跳包监听
- huggingface space 唤醒相关 api
- components 相关 api新增了以下特性:
- 使用了 Koishi 的 HTTP 服务
- 移除了部分依赖,减小包体积
- cjs & esm 同步支持## 使用
```typescript
import type {} from "koishi-plugin-gradio-service"const app = ctx.gradio.connect(".....")
```