File size: 2,701 Bytes
4545835 ebb26b0 4545835 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 4545835 42e2913 ebb26b0 4545835 ebb26b0 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 |
import marimo
__generated_with = "0.10.9"
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)、购买获取到安装文件(一般在视频下方)。
- 适合人群:小白及以上水平皆可一键安装。
- 如何 `一键安装`:
- 图形界面方法:请查看 `视频教程`:
```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程序。
"""
),
"其它": (
"""
开发中……
"""
),
}
return (tips,)
if __name__ == "__main__":
app.run()
|