aiwaves-cn / RecurrentGPT

Official Code for Paper: RecurrentGPT: Interactive Generation of (Arbitrarily) Long Text
GNU General Public License v3.0
954 stars 155 forks source link

How can I use it locally? #5

Closed DerickYau closed 1 year ago

DerickYau commented 1 year ago

This is an exciting extension of ChatGPT. Can you write a detailed teaching for local use? Thank.

MichaelZhouwang commented 1 year ago

Hey thanks for your interest! To use it locally, you can set up a gradio demo locally by:

export OPENAI_API_KEY="your_api_key"
python gradio_server.py

otherwise you can also modify main.py and run the following command sh recurrent.sh