aiwaves-cn / agents

An Open-source Framework for Autonomous Language Agents

Home Page:http://www.aiwaves-agents.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Software_company run_gradio.py ERROR

Jackie-shi opened this issue · comments

When I run the run_gradio.py from software_company dir, it returns the following error:
KeyError: 'pwd'

The related code is here:

if state == 99:
    # finish
    fs = [self.cache['pwd']+'/output_code/'+_ for _ in os.listdir(self.cache['pwd']+'/output_code')]
    yield gr.File.update(value=fs, visible=True, interactive=True),\
        history, \
        gr.Chatbot.update(visible=True),\
        gr.Button.update(visible=True, interactive=True, value="Start"),\
        gr.Button.update(visible=True, interactive=True),\
        gr.Textbox.update(visible=True, interactive=True, placeholder="Please input your requirement", value=""),\
        gr.Button.update(visible=False)
    return

hi @Jackie-shi, we have fixed it, you can check our latest codebase(4dca77f).