diff --git a/script/example.ipynb b/script/example.ipynb index 9e671a3..afce05e 100644 --- a/script/example.ipynb +++ b/script/example.ipynb @@ -95,7 +95,7 @@ "\n", "# Set API token \n", "claudeToken = \"sk-xxxxxxxx\"\n", - "gpt_interviewer = ClaudeGenerator(api_key=claudeToken)\n", + "claude = ClaudeGenerator(api_key=claudeToken)\n", "\n", "# Set your profile\n", "jd = \"\"\"\n", @@ -125,7 +125,7 @@ "user_prompt = ClaudeGenerator.create_base_prompt(\"generateQAs\")\n", "\n", "# Generate interview content\n", - "generated_qa_dict = gpt_interviewer.generate_interview_content(\n", + "generated_qa_dict = claude.generate_interview_content(\n", " system_prompt=system_prompt,\n", " user_prompt=user_prompt,\n", " iteration=1,\n", @@ -155,8 +155,8 @@ "# [Optional] 5. Play audio randomly\n", "from openinterview import RandomPlayer\n", "\n", - "player = RandomPlayer(directory=\"openinterview_claude\", interval=120) # Pass the path the question.mp3 is existed.\n", - "player.play_random_mp3()\n" + "p = RandomPlayer(directory=\"openinterview_claude\", interval=120) # Pass the path the question.mp3 is existed.\n", + "p.play_random_mp3()\n" ] }, { @@ -224,7 +224,7 @@ "\n", "# Set API token\n", "openai.api_key = \"sk-xxxxxxxxxx\"\n", - "gpt_interviewer = GptGenerator(api_key=openai.api_key)\n", + "gpt = GptGenerator(api_key=openai.api_key)\n", "\n", "# Set your profile\n", "jd = \"\"\"\n", @@ -254,7 +254,7 @@ "user_prompt = GptGenerator.create_base_prompt(\"generateQAs\")\n", "\n", "# Generate interview content\n", - "generated_qa_dict = gpt_interviewer.generate_interview_content(\n", + "generated_qa_dict = gpt.generate_interview_content(\n", " system_prompt=system_prompt,\n", " user_prompt=user_prompt,\n", " iteration=1,\n", @@ -283,8 +283,8 @@ "# [Optional] 5. Play audio randomly\n", "from openinterview import RandomPlayer\n", "\n", - "player = RandomPlayer(directory=\"openinterview_gpt\", interval=120) # Pass the path the question.mp3 is existed.\n", - "player.play_random_mp3()" + "p = RandomPlayer(directory=\"openinterview_gpt\", interval=120) # Pass the path the question.mp3 is existed.\n", + "p.play_random_mp3()" ] } ],