Skip to content

Commit 0c12a14

Browse files
Add training fig
1 parent f2ff7c9 commit 0c12a14

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎intro_to_ml.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@
4848
response = requests.get(_img_src)
4949
with open(_img_dst, "wb") as _f:
5050
_f.write(response.content)
51+
52+
_img_dst = assets_path / "training_fig.svg"
53+
if not _img_dst.exists():
54+
_img_src = "https://raw.githubusercontent.com/EPFL-Center-for-Imaging/vision-workshop/f2ff7c956d4ef5f16cac789e286257cc13308363/public/assets/training_fig.svg"
55+
response = requests.get(_img_src)
56+
with open(_img_dst, "wb") as _f:
57+
_f.write(response.content)
5158
else:
5259
import seaborn as sns
5360

@@ -205,7 +212,7 @@ def _():
205212
return
206213

207214

208-
@app.cell
215+
@app.cell(hide_code=True)
209216
def _():
210217
path_exists = "✅ yes" if dataset_path.exists() else "❌ no"
211218

0 commit comments

Comments
 (0)