File size: 4,487 Bytes
4545835 8beb2e5 4545835 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 6d47045 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 ebb26b0 6d47045 ebb26b0 6d47045 ebb26b0 4545835 6d47045 8beb2e5 6d47045 3080455 6d47045 42e2913 4545835 42e2913 4545835 ebb26b0 4545835 |
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
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()
|