Skip to content

Commit

Permalink
Merge branch 'main' of github.com:earthpulse/eotdl
Browse files Browse the repository at this point in the history
  • Loading branch information
juansensio committed Oct 24, 2024
2 parents 38996f8 + b7ec56a commit c1915d9
Show file tree
Hide file tree
Showing 3 changed files with 421 additions and 0 deletions.
72 changes: 72 additions & 0 deletions tutorials/notebooks/30_hello_ml-inference.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"tags": []
},
"source": [
"# EOTDL ML-Inference: Hello"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"import requests\n",
"\n",
"url = f'https://hub.api.eotdl.com/services/eoxhub-gateway/eotdl/ml-inference/'\n",
"headers = {'Authorization': 'Token e8f278b9292e4ab08562bf35517e0b9a'} # replace with your own API token if you have an upgraded EOTDL subscription\n",
"\n",
"res = requests.get(url, headers=headers)"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"{'message': 'Hello from the ml-inference API!', 'version': '2024.10.07'}"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"res.json()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "users-eotdl-2024.5.2",
"language": "python",
"name": "conda-env-users-eotdl-2024.5.2-py"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
178 changes: 178 additions & 0 deletions tutorials/notebooks/31_eurosat.ipynb

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions tutorials/notebooks/32_road_segmentation.ipynb

Large diffs are not rendered by default.

0 comments on commit c1915d9

Please sign in to comment.