【Tauri】(4):使用Tauri1.5版本+candle框架运行大模型,前后的搭建运行成功,整合前端项目,在应用中显示。

1,视频地址

关于tauri 框架

2,搭建rust 环境


# 设置服务器国内代理:
export RUSTUP_DIST_SERVER="https://rsproxy.cn"
export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"

# 设置环境变量
export RUSTUP_HOME=/data/home/test/cargo
export CARGO_HOME=/data/home/test/cargo

# 安装rust 软件
curl --proto '=https' --tlsv1.2 -sSf https://rsproxy.cn/rustup-init.sh | sh

rustc -V
rustc 1.76.0 (07dca489a 2024-02-04)

3,运行创建项目

然后下载 candle 项目:

https://github.com/huggingface/candle

tauri项目:
https://tauri.app/zh-cn/

在这里插入图片描述

创建项目:

npm create tauri-app@latest

4,整合项目开源的Chatgpt-web项目

开源的Chatgpt-web应用
https://blog.csdn.net/freewebsys/article/details/129679034

但是页面样式不对:

在这里插入图片描述
缺少了 postcss.config.js tailwind.config.js 配置样式的:

https://tailwindcss.com/docs/content-configuration

使用了这个开源项目:

https://github.com/tailwindlabs/tailwindcss

在这里插入图片描述
然后页面显示正常了。

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-10 06:42:11       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-10 06:42:11       100 阅读
  3. 在Django里面运行非项目文件

    2024-03-10 06:42:11       82 阅读
  4. Python语言-面向对象

    2024-03-10 06:42:11       91 阅读

热门阅读

  1. 修改uboot连接的主机的ip地址

    2024-03-10 06:42:11       49 阅读
  2. 前端框架的发展史

    2024-03-10 06:42:11       42 阅读
  3. 【快捷键】Mac如何打出数学符号和希腊字母

    2024-03-10 06:42:11       74 阅读
  4. 前端框架的发展史

    2024-03-10 06:42:11       44 阅读
  5. 网络延迟导致终端卡顿

    2024-03-10 06:42:11       50 阅读
  6. LVS集群

    LVS集群

    2024-03-10 06:42:11      39 阅读
  7. LVS集群

    LVS集群

    2024-03-10 06:42:11      31 阅读
  8. 前端框架的发展史

    2024-03-10 06:42:11       49 阅读
  9. swift的lazy关键字 后面还会补充

    2024-03-10 06:42:11       38 阅读
  10. for each和for of的区别

    2024-03-10 06:42:11       42 阅读
  11. 测试用例例子:在线购物平台的结算功能测试

    2024-03-10 06:42:11       31 阅读
  12. 【MySQL 系列】在 CentOS 上安装 MySQL

    2024-03-10 06:42:11       41 阅读
  13. centos 7 安装mysql 8.0

    2024-03-10 06:42:11       41 阅读