Code Monkey home page Code Monkey logo

ai_mysticism's Introduction

AI Mysticism

AI 算命,占卜 功能

占卜功能

  • 塔罗牌
    • 塔罗牌(不同玩法)
    • 塔罗牌(自己抽牌)
    • 利用多Agent占卜
    • 用户填入自己的api-key
  • 测名
  • 宝宝起名
  • 周公解梦
  • 梅花易数
  • 测姻缘指数

记录功能

  • 记录占卜对话(云数据库)

Deploy by docker

根目录新建一个docker-compose.yml文件

version: '3.11'

services:
  ai-mysticism:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: ai-mysticism
    restart: always
    ports:
      - "8000:8000"
    environment:
      - api_key=<your api key>          # 必填
      - api_base=<your api base>        # 必填
      - github_client_id=xxx
      - github_client_secret=xxx
      - jwt_secret=secret
      - ad_client=ca-pub-xxx
      - ad_slot=123
      - database_url=<your database url> # 必填
docker-compose down
docker-compose up --build

Local Run

根目录创建 .env 文件,填入如下内容, api_key api_base database_url 为必填项, 其余为可选项

# 后端变量
api_key=xxx
api_base=xxx
github_client_id=xxx
github_client_secret=xxx
ad_client=ca-pub-xxx
ad_slot=123
database_url = xxxx  # 云数据库连接
# 启动后端服务器
cd D:\ai-mysticism\frontend
# pnpm install
pnpm build --emptyOutDir
cd ..
rm -r dist
cp -r frontend/dist/ dist
# python -m venv venv
.\venv\Scripts\activate
# pip install -r requirements.txt
python main.py
# 启动前端
cd D:\ai-mysticism\frontend
npm run dev

效果展示

效果展示图片

主页(未登录)

主页(未登录)

主页对话(未登录)

主页对话(未登录)

登录/注册页

登录/注册页

登录后的个人主页

登录后的个人主页

主页(已登录)

主页(已登录)

暗亮色切换

暗亮色切换

Reference

因为本人是小白,所以大部分参考了chatgpt-tarot-divination项目,非常感谢!

  • 修改了UI部分
  • 增加了登录模块
  • 修改了部分占卜prompt

ai_mysticism's People

Contributors

ranfeng2 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.