SeungyounShin / Llama2-Code-Interpreter

Make Llama2 use Code Execution, Debug, Save Code, Reuse it, Access to Internet
687 stars 89 forks source link

problem running the code #10

Closed haniehkh18 closed 10 months ago

haniehkh18 commented 10 months ago

I get the below error when I run the command in Windows: C:\Data\Llama2-Code-Interpreter\code_interpreter\GPTCodeInterpreter.py:24 in │ │ │ │ 21 from termcolor import colored │ │ 22 │ │ 23 # load from key file │ │ ❱ 24 with open('./openai_api_key.txt') as f: │ │ 25 │ OPENAI_API_KEY = key = f.read() │ │ 26 openai.api_key = OPENAI_API_KEY │ │ 27 from utils.cleaner import clean_error_msg │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ FileNotFoundError: [Errno 2] No such file or directory: './openai_api_key.txt'

cjie888 commented 10 months ago

Same with the mac.

SeungyounShin commented 10 months ago

Adding HF model. So no need to import openai_api_key.txt anymore I will rebase the code as soon as possible.