aiwaves-cn / RecurrentGPT

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

local gradio demo has a bug #1

Closed wbbeyourself closed 1 year ago

wbbeyourself commented 1 year ago

File "xxx/RecurrentGPT/gradio_server.py", line 65, in init init_paragraphs = get_init(chatbot, init_prompt(novel_type, description)) File "xxx/RecurrentGPT/utils.py", line 38, in get_init with open(init_text,'r',encoding='utf-8') as f: TypeError: expected str, bytes or os.PathLike object, not Chatbot

I guess this demo use web session for GPT4. How about call gpt-3.5-turbo api for the demo ? Thank you for your interesting work.

swaggy-TN commented 1 year ago

Hi Bing, Thank you for your attention. We currently update the weblink towards our online demo. We highly encourage you to visit the demo and provide us with your valuable feedback.

MichaelZhouwang commented 1 year ago

Hey we have uploaded a new version for local gradio. We're using GPT-3.5-Turbo for our web demo instead of GPT-4 (since GPT-4 is really slow :))