You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/hai2025/crafting2.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ ai.make_api_request(
38
38
# Classifying Materials
39
39
40
40
## Step 1
41
-
Next lets update the training data to add how to craft sticks. You'll notice in the `sticks` variable `O` represents an empty space and `B` represents an item.
41
+
Next let's update the training data to add how to craft sticks. You'll notice in the `sticks` variable `O` represents an empty space and `B` represents an item.
Copy file name to clipboardExpand all lines: python/hai2025/wood5.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,15 +28,15 @@ api_key = 'MC-KEY-821-597'
28
28
Copy over the authentication parameters and updated endpoint under where it says `# add additional code below`.
29
29
30
30
## Step 2
31
-
Then we need to use the provided crafting pattern inside of our training data.
31
+
Then we need to use the provided crafting pattern inside of our training data. Unlike previous lessons, this time we'll be passing a variable called `wood_planks` to the training data that represents the crafting pattern.
32
32
33
33
```python
34
34
training_data = {
35
35
'crafting': wood_planks
36
36
}
37
37
```
38
38
### ~ tutorialhint
39
-
Copy over the updated training data.
39
+
Copy over the updated training data. Make sure `wood_panks` is a variable and not a string. The `wood_planks` variable represents a stringified version of the crafting recipe.
40
40
41
41
## Step 3
42
42
Finally, we need to call the ai.make_api_request() function.
@@ -55,7 +55,7 @@ Confirm your code matches the provided code and press the run button.
0 commit comments