Skip to content

Commit

Permalink
fix: document for 1.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
dsdanielpark committed Mar 29, 2024
1 parent 5871794 commit 613edda
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions script/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
]
},
{
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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()"
]
}
],
Expand Down

0 comments on commit 613edda

Please sign in to comment.