-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Inline help in Scratch 3 for missing ML models
The recognize-image blocks in Scratch 3 will now open a Help panel if they're used when there is no machine learning model found. Signed-off-by: Dale Lane <[email protected]>
- Loading branch information
Showing
3 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<html> | ||
<head> | ||
<link href="help-scratch.css" rel="stylesheet"> | ||
<title>Using machine learning models</title> | ||
</head> | ||
<body> | ||
<div> | ||
<img class="help-block" valign="middle" src="../../static/images/scratch3-recognise-label-images.png" alt="recognise images"> | ||
</div> | ||
<div class="help-section"> | ||
This block lets you use machine learning models in your Scratch projects. | ||
However, when you tried to use it, it didn't work because <strong>you don't seem to have a machine learning model</strong>. | ||
</div> | ||
<div class="help-section"> | ||
There are a few reasons why this might have happened: | ||
</div> | ||
<div class="help-section"> | ||
<div class="help-item"> | ||
<span class="help-number">1.</span> You haven't trained a machine learning model yet. | ||
</div> | ||
<div class="help-item"> | ||
<span class="help-number">2.</span> You've started training a machine learning model, but it is still training and isn't ready yet. | ||
</div> | ||
<div class="help-item"> | ||
<span class="help-number">3.</span> You did train a machine learning model, but it has been deleted (by you, your teacher, or maybe it was automatically deleted after the expiry time passed). | ||
</div> | ||
</div> | ||
<div class="help-section"> | ||
You can check this on the <strong>Learn & Test</strong> page for your project. | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters