Skip to content

Commit

Permalink
add chdir
Browse files Browse the repository at this point in the history
  • Loading branch information
bannzai committed Nov 4, 2024
1 parent 5ab4605 commit 78e59b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/gen_app_en_arb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# OpenAI API key (replace with your actual key)
openai.api_key = os.getenv("OPENAI_API_KEY")

os.chdir('../')

# Function to translate text using OpenAI's API with Function Calling
def translate_text_with_openai(text):
response = openai.chat.completions.create(
Expand Down

0 comments on commit 78e59b2

Please sign in to comment.