|
import marimo |
|
|
|
__generated_with = "0.10.7" |
|
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 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 |
|
``` |
|
- 安装完成后请看程序生成的说明文件来启动使用程序 |
|
""" |
|
), |
|
"其它": ( |
|
""" |
|
开发中…… |
|
""" |
|
), |
|
|
|
} |
|
return (tips,) |
|
|
|
|
|
if __name__ == "__main__": |
|
app.run() |
|
|