|
import marimo |
|
|
|
__generated_with = "0.10.12" |
|
app = marimo.App() |
|
|
|
|
|
@app.cell |
|
def _(): |
|
import marimo as mo |
|
|
|
mo.md("# Ai for U") |
|
return (mo,) |
|
|
|
|
|
@app.cell(hide_code=True) |
|
def _(mo): |
|
mo.accordion( |
|
{ |
|
"联系我或加群交流:": mo.md( |
|
rf""" |
|
- [交流群](https://qr61.cn/oohivs/qRp62U6) |
|
- [Discord](https://discord.gg/3JWMgKQznF) |
|
""" |
|
) |
|
} |
|
) |
|
return |
|
|
|
|
|
@app.cell(hide_code=True) |
|
def _(mo): |
|
mo.md( |
|
""" |
|
### 【ai来事】 Aitools 一键安装说明 |
|
""" |
|
).callout() |
|
return |
|
|
|
|
|
@app.cell(hide_code=True) |
|
def _(mo): |
|
mo.md("""**安装前请阅读说明** 也可以参考视频教程进行。""") |
|
return |
|
|
|
|
|
@app.cell |
|
def _(mo, tips): |
|
mo.accordion(tips) |
|
return |
|
|
|
|
|
@app.cell(hide_code=True) |
|
def _(mo): |
|
mo.md("""## Finally, a fun fact""") |
|
return |
|
|
|
|
|
@app.cell |
|
def _(): |
|
tips = { |
|
"【SD webUI Forge一键安装脚本】": ( |
|
""" |
|
**Stable Diffusion WebUI Forge** |
|
|
|
- _最热门_ 的生图 webUI。除了SD还支持Flux,相对comfyui简单易用,功能也很强大。 |
|
- 使用前提条件:符合的算力平台(比如cloudstudio) |
|
- 购买获取到安装文件([获取链接](https://gf.bilibili.com/item/detail/1107362073))。 |
|
- 适合人群:小白及以上水平皆可一键安装。 |
|
|
|
- 如何 `一键安装`: |
|
- 图形界面方法:请查看 [视频教程](https://www.bilibili.com/video/BV1aUrXYLEB4/): |
|
```bash |
|
deactivate && apt-get update && apt-get install -y curl; bash -c "$(curl -fsSL https://gitee.com/fuliai/ai2u/raw/main/ai2u.sh)" - sd-webui-forge-ics |
|
``` |
|
- 命令行: |
|
```bash |
|
pip install marimo -i https://mirrors.cloud.tencent.com/pypi/simple && python apps/sd-webui-forge-ics.py |
|
``` |
|
- 如何启动程序 |
|
|
|
- 方式一(主要启动方式):命令行启动程序: |
|
```bash |
|
/workspace/apps/ksa/ksa_x64 |
|
cd /workspaces/ai_StableDifusion |
|
source .venv/bin/activate |
|
cd stable-diffusion-webui-forge |
|
export HF_ENDPOINT=https://hf-mirror.com |
|
./webui.sh -f |
|
``` |
|
- 方式二:图形界面启动程序: |
|
```bash |
|
source /workspaces/ai_StableDifusion/.venv/bin/activate |
|
/workspace/apps/ksa/ksa_x64 |
|
marimo run /workspaces/apps/stable-diffusion-webui-forge.py |
|
``` |
|
之后使用ksa连接,在浏览器中使用 10.0.0.1:<安装程序的端口号> 来访问安装页面,点击"启动程序", |
|
之后使用 10.0.0.1:<程序运行的端口号> 来访问ai程序。 |
|
""" |
|
), |
|
"【LATENT SYNC一键安装脚本】": ( |
|
""" |
|
**LATENT SYNC** |
|
|
|
- _最新热门_ 的唇形同步、数字人应用。 |
|
- 使用前提条件:符合的算力平台(比如cloudstudio) |
|
- 购买获取到安装文件([获取链接](https://gf.bilibili.com/item/detail/1107362073))。 |
|
- 适合人群:小白及以上水平皆可一键安装。 |
|
|
|
- 如何 `一键安装`: |
|
- 图形界面方法:请查看[视频教程](https://www.bilibili.com/video/BV1aUrXYLEB4/): |
|
```bash |
|
deactivate && apt-get update && apt-get install -y curl; bash -c "$(curl -fsSL https://gitee.com/fuliai/ai2u/raw/main/ai2u.sh)" - latent-sync-ics |
|
``` |
|
- 命令行: |
|
```bash |
|
cd /workspace && deactivate && apt-get update && apt-get install -y curl; bash -c "$(curl -fsSL https://gitee.com/fuliai/ai2u/raw/main/ai2u.sh)" - cli latent-sync-ics |
|
``` |
|
- 如何启动程序 |
|
|
|
- 方式一(主要启动方式):命令行启动程序: |
|
```bash |
|
/workspace/apps/ksa/ksa_x64 |
|
cd /workspace/ai_latentsync |
|
source .venv/bin/activate |
|
cd LatentSync |
|
export HF_ENDPOINT=https://hf-mirror.com |
|
python gradio_app.py --port 8000 |
|
``` |
|
ksa连接后在浏览器中使用 10.0.0.1:8000 打开ai程序 |
|
|
|
- 方式二:图形界面启动程序: |
|
```bash |
|
source /workspace/ai_latentsync/.venv/bin/activate |
|
/workspace/apps/ksa/ksa_x64 |
|
marimo run /workspace/apps/latent-sycn-ics.py |
|
``` |
|
之后使用ksa连接,在浏览器中使用 10.0.0.1:8000 来访问安装页面,点击"启动程序", |
|
之后使用 10.0.0.1:8000 来访问ai程序。(以实际端口为准) |
|
""" |
|
), |
|
|
|
"其它": ( |
|
""" |
|
开发中…… |
|
""" |
|
), |
|
|
|
} |
|
return (tips,) |
|
|
|
|
|
if __name__ == "__main__": |
|
app.run() |
|
|