Skip to content

Latest commit

 

History

History
84 lines (68 loc) · 4.68 KB

README-EN.md

File metadata and controls

84 lines (68 loc) · 4.68 KB

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

Join in the developer group

If you have any questions, please scan the QR code below with WeChat to join in the developer group:

text