Giter Site home page Giter Site logo

erikluo / skychat-cn-chatbot-gpt3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skyworkaigc/skychat-chinese-chatbot-gpt3

0.0 1.0 0.0 698 KB

SkyChat is a Chatbot project based on Chinese GPT3 API. Like chatGPT, it can do human-machine chat, question and answer, and can also complete tasks such as Chinese-English or English-Chinese translation, content continuation, couplets, and Chinese ancient poems writing. / SkyChat是一款基于中文GPT-3 API做的聊天机器人项目。它可以

Home Page: https://openapi.singularity-ai.com/index.html#/

License: MIT License

Python 29.88% C# 70.12%

skychat-cn-chatbot-gpt3's Introduction

SkyChat

Brief introduction

SkyChat is a chat robot project developed based on the Chinese GPT-3 API. In addition to basic chatting, dialogue, and asking me to answer, it can also support Chinese-English translation, content continuation, couplets, writing ancient poems, generating recipes , third-person reporting, creating interview questions and many other functions.

image

More details at Singularity-AI-OpenAPI

Here are some show cases:

Show cases

For experience and trial, please visit Singularity-AI-trail

Chat

image

Question and answer

image

Generate recipes:

input—— image

output—— image

Couplet

image

How to use the Demo:

Set up models and python environment

Windows

  1. Download Anaconda , and select add to path
    图片名称
  2. Download and unzip the models and training data semantic_score_clean and user_profile_clean
  3. Open an Anaconda prompt and type in the commands
    conda create -n semantic create new env
    conda info --envs check environments
    activate semantic activate it
    cd [YOUR PATH]\semantic_score_clean\semantic_score_clean navigate to the extracted 'semantic_score_clean' folder
    python -m pip uninstall numpy Delete the default numpy
    python -m pip install -r requirements.txt Install Requirements
    python semantic_score_api.py Bring semantic service online
  4. Download Cuda according to your system and install
  5. Open a new anaconda prompt and type in the following conda create -n userprofilecreate new env
    conda info --envscheck environments
    activate userprofileactivate it
    cd [YOUR PATH]\user_profile_clean\user_profile_clean navigate to the extracted 'user_profile_clean' folder
    python -m pip uninstall numpy Delete the default numpy
    python -m pip install -r requirements.txt Install Requirements
    python -m pip install torch==1.11.0+cu115 -f https://download.pytorch.org/whl/torch_stable.html Download torch in cuda version
    python server_v3.pyBring userprofile service online

Unity Demo

  1. Download the newest release
  2. Register In OpenAPI website or inside the Demo to get 'api-key' and 'api-secret'
  3. Click Setting, inside the setting panel, type in key and secret accordingly, customize the names in your need, click save and exit
  4. Make sure 'semantic_score_clean' and 'user_profile_clean' has been set up locally, if you want to set it up remotely, replace the url to your remote host
  5. Time to chat!

Python Demo

  1. Register In OpenAPI website to get 'api-key' and 'api-secret'
  2. Open \[YOUR PATH]\OpenAPIDemo\PythonDemo\main.py fill in key and secret accordingly 图片名称
  3. Open Anaconda and type in the following conda create -n talk create new env
    activate talk activate it
    cd \[YOUR PATH]\OpenAPIDemo\PythonDemo navigate to your Demo path
    python -m pip install requests Install requirements
    python main.py Begin to chat(Make sure 'Semantic' and 'UserProfile' services has been set up)

* Minimum requirement Nvidia Gfx 1060

skychat-cn-chatbot-gpt3's People

Contributors

skyworkaigc avatar moe-1111 avatar singularity-intelligence avatar

Watchers

 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.