Skip to content

Commit

Permalink
fix: spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
katiemn committed Jan 31, 2025
1 parent 2647bfd commit af1f625
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,8 @@
"import json\n",
"\n",
"# Load the responses into a JSON format\n",
"jsonized_response = json.loads(response)\n",
"jsonized_response[\"starters\"]"
"json_response = json.loads(response)\n",
"json_response[\"starters\"]"
]
},
{
Expand All @@ -625,7 +625,7 @@
"outputs": [],
"source": [
"# convert a description into an image prompt\n",
"description = jsonized_response[\"starters\"][0][\"description\"]\n",
"description = json_response[\"starters\"][0][\"description\"]\n",
"text_prompt = prompt_template.format(image_prompt=description)\n",
"image_prompt = generate_content(text_prompt)\n",
"\n",
Expand All @@ -650,7 +650,7 @@
},
"outputs": [],
"source": [
"for starter in jsonized_response[\"starters\"]:\n",
"for starter in json_response[\"starters\"]:\n",
" text_prompt = prompt_template.format(image_prompt=starter[\"description\"])\n",
" image_prompt = generate_content(text_prompt)\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,8 @@
"import json\n",
"\n",
"# Load the responses into a JSON format\n",
"jsonized_response = json.loads(response)\n",
"jsonized_response[\"starters\"]"
"json_response = json.loads(response)\n",
"json_response[\"starters\"]"
]
},
{
Expand All @@ -663,7 +663,7 @@
"outputs": [],
"source": [
"# convert a description into an image prompt\n",
"description = jsonized_response[\"starters\"][0][\"description\"]\n",
"description = json_response[\"starters\"][0][\"description\"]\n",
"text_prompt = prompt_template.format(image_prompt=description)\n",
"image_prompt = generate_content(text_prompt)\n",
"\n",
Expand All @@ -688,7 +688,7 @@
},
"outputs": [],
"source": [
"for starter in jsonized_response[\"starters\"]:\n",
"for starter in json_response[\"starters\"]:\n",
" text_prompt = prompt_template.format(image_prompt=starter[\"description\"])\n",
" image_prompt = generate_content(text_prompt)\n",
"\n",
Expand Down

0 comments on commit af1f625

Please sign in to comment.