Skip to content

Commit 7468b72

Browse files
committed
Date update & duplication
1 parent 5d3bc79 commit 7468b72

File tree

15 files changed

+211
-211
lines changed

15 files changed

+211
-211
lines changed

pages/public_cloud/ai_machine_learning/deploy_tuto_05_gradio_sketch_recognition/guide.de-de.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AI Deploy - Tutorial - Deploy a Gradio app for sketch recognition
33
excerpt: How to build and use a custom Docker image containing a Gradio application
4-
updated: 2023-11-27
4+
updated: 2025-06-25
55
---
66

77
> [!primary]
@@ -23,8 +23,8 @@ Overview of the app:
2323

2424
## Requirements
2525

26-
- Access to the [OVHcloud Control Panel](https://www.ovh.com/auth/?action=gotomanager&from=https://www.ovh.de/&ovhSubsidiary=de).
27-
- An AI Deploy project created inside a [Public Cloud project](https://www.ovhcloud.com/de/public-cloud/) in your OVHcloud account.
26+
- Access to the [OVHcloud Control Panel](/links/manager).
27+
- An AI Deploy project created inside a [Public Cloud project](/links/public-cloud/public-cloud) in your OVHcloud account.
2828
- A [user for AI Deploy](/pages/public_cloud/ai_machine_learning/gi_01_manage_users).
2929
- [Docker](https://www.docker.com/get-started) installed on your local computer.
3030
- Some knowledge about building image and [Dockerfile](https://docs.docker.com/engine/reference/builder/).
@@ -87,7 +87,7 @@ Load the previously trained model for handwritten digits classification.
8787
>
8888
8989
```python
90-
model = tf.keras.models.load_model("model/sketch_recognition_numbers_model.h5")
90+
model = tf.keras.models.load_model("model/sketch_recognition_numbers_model.h5", compile=False)
9191
```
9292

9393
Create the function that recognizes the written number.
@@ -158,26 +158,27 @@ CMD [ "python3" , "/workspace/app.py" ]
158158

159159
### Build the Docker image from the Dockerfile
160160

161-
Launch the following command from the **Dockerfile** directory to build your application image:
161+
From the directory containing your **Dockerfile**, run one of the following commands to build your application image:
162162

163163
```console
164+
# Build the image using your machine's default architecture
164165
docker build . -t gradio_app:latest
166+
167+
# Build image targeting the linux/amd64 architecture
168+
docker buildx build --platform linux/amd64 -t gradio_app:latest .
165169
```
166170

171+
- The **first command** builds the image using your system’s default architecture. This may work if your machine already uses the `linux/amd64` architecture, which is required to run containers with our AI products. However, on systems with a different architecture (e.g. `ARM64` on `Apple Silicon`), the resulting image will not be compatible and cannot be deployed.
172+
173+
- The **second command** explicitly targets the `linux/AMD64` architecture to ensure compatibility with our AI services. This requires `buildx`, which is not installed by default. If you haven’t used `buildx` before, you can install it by running: `docker buildx install`
174+
167175
> [!primary]
168176
>
169177
> The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
170178
>
171179
> The `-t` argument allows you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **gradio_app:latest**.
172180
>
173181
174-
> [!warning]
175-
>
176-
> Please make sure that the docker image you will push in order to run containers using AI products respects the **linux/AMD64** target architecture. You could, for instance, build your image using **buildx** as follows:
177-
>
178-
> `docker buildx build --platform linux/amd64 ...`
179-
>
180-
181182
### Push the image into the shared registry
182183

183184
> [!warning]
@@ -211,7 +212,7 @@ The following command starts a new AI Deploy app running your Gradio application
211212
```console
212213
ovhai app run \
213214
--cpu 1 \
214-
--volume <my_saved_model>@<region>/:/workspace/model:RO \
215+
--volume <my_saved_model>@<region>/model/:/workspace/model:RO \
215216
<shared-registry-address>/gradio_app:latest
216217
```
217218

@@ -241,11 +242,10 @@ If you want your **AI Deploy app** to be accessible without the need to authenti
241242
- You can imagine deploying an AI model with an other tool: **Flask**. Refer to this [tutorial](/pages/public_cloud/ai_machine_learning/deploy_tuto_06_flask_hugging_face).
242243
- Do you want to use **Streamlit** to create a audio classification app? [Here it is](/pages/public_cloud/ai_machine_learning/deploy_tuto_03_streamlit_sounds_classification).
243244

244-
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/de/professional-services/) to get a quote and ask our Professional Services experts for a custom analysis of your project.
245+
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](/links/professional-services) to get a quote and ask our Professional Services experts for a custom analysis of your project.
245246

246247
## Feedback
247248

248249
Please send us your questions, feedback and suggestions to improve the service:
249250

250251
- On the OVHcloud [Discord server](https://discord.gg/ovhcloud)
251-

pages/public_cloud/ai_machine_learning/deploy_tuto_05_gradio_sketch_recognition/guide.en-asia.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AI Deploy - Tutorial - Deploy a Gradio app for sketch recognition
33
excerpt: How to build and use a custom Docker image containing a Gradio application
4-
updated: 2023-11-27
4+
updated: 2025-06-25
55
---
66

77
> [!primary]
@@ -23,8 +23,8 @@ Overview of the app:
2323

2424
## Requirements
2525

26-
- Access to the [OVHcloud Control Panel](https://ca.ovh.com/auth/?action=gotomanager&from=https://www.ovh.com/asia/&ovhSubsidiary=asia).
27-
- An AI Deploy project created inside a [Public Cloud project](https://www.ovhcloud.com/asia/public-cloud/) in your OVHcloud account.
26+
- Access to the [OVHcloud Control Panel](/links/manager).
27+
- An AI Deploy project created inside a [Public Cloud project](/links/public-cloud/public-cloud) in your OVHcloud account.
2828
- A [user for AI Deploy](/pages/public_cloud/ai_machine_learning/gi_01_manage_users).
2929
- [Docker](https://www.docker.com/get-started) installed on your local computer.
3030
- Some knowledge about building image and [Dockerfile](https://docs.docker.com/engine/reference/builder/).
@@ -87,7 +87,7 @@ Load the previously trained model for handwritten digits classification.
8787
>
8888
8989
```python
90-
model = tf.keras.models.load_model("model/sketch_recognition_numbers_model.h5")
90+
model = tf.keras.models.load_model("model/sketch_recognition_numbers_model.h5", compile=False)
9191
```
9292

9393
Create the function that recognizes the written number.
@@ -158,26 +158,27 @@ CMD [ "python3" , "/workspace/app.py" ]
158158

159159
### Build the Docker image from the Dockerfile
160160

161-
Launch the following command from the **Dockerfile** directory to build your application image:
161+
From the directory containing your **Dockerfile**, run one of the following commands to build your application image:
162162

163163
```console
164+
# Build the image using your machine's default architecture
164165
docker build . -t gradio_app:latest
166+
167+
# Build image targeting the linux/amd64 architecture
168+
docker buildx build --platform linux/amd64 -t gradio_app:latest .
165169
```
166170

171+
- The **first command** builds the image using your system’s default architecture. This may work if your machine already uses the `linux/amd64` architecture, which is required to run containers with our AI products. However, on systems with a different architecture (e.g. `ARM64` on `Apple Silicon`), the resulting image will not be compatible and cannot be deployed.
172+
173+
- The **second command** explicitly targets the `linux/AMD64` architecture to ensure compatibility with our AI services. This requires `buildx`, which is not installed by default. If you haven’t used `buildx` before, you can install it by running: `docker buildx install`
174+
167175
> [!primary]
168176
>
169177
> The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
170178
>
171179
> The `-t` argument allows you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **gradio_app:latest**.
172180
>
173181
174-
> [!warning]
175-
>
176-
> Please make sure that the docker image you will push in order to run containers using AI products respects the **linux/AMD64** target architecture. You could, for instance, build your image using **buildx** as follows:
177-
>
178-
> `docker buildx build --platform linux/amd64 ...`
179-
>
180-
181182
### Push the image into the shared registry
182183

183184
> [!warning]
@@ -211,7 +212,7 @@ The following command starts a new AI Deploy app running your Gradio application
211212
```console
212213
ovhai app run \
213214
--cpu 1 \
214-
--volume <my_saved_model>@<region>/:/workspace/model:RO \
215+
--volume <my_saved_model>@<region>/model/:/workspace/model:RO \
215216
<shared-registry-address>/gradio_app:latest
216217
```
217218

@@ -241,11 +242,10 @@ If you want your **AI Deploy app** to be accessible without the need to authenti
241242
- You can imagine deploying an AI model with an other tool: **Flask**. Refer to this [tutorial](/pages/public_cloud/ai_machine_learning/deploy_tuto_06_flask_hugging_face).
242243
- Do you want to use **Streamlit** to create a audio classification app? [Here it is](/pages/public_cloud/ai_machine_learning/deploy_tuto_03_streamlit_sounds_classification).
243244

244-
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/asia/professional-services/) to get a quote and ask our Professional Services experts for a custom analysis of your project.
245+
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](/links/professional-services) to get a quote and ask our Professional Services experts for a custom analysis of your project.
245246

246247
## Feedback
247248

248249
Please send us your questions, feedback and suggestions to improve the service:
249250

250251
- On the OVHcloud [Discord server](https://discord.gg/ovhcloud)
251-

pages/public_cloud/ai_machine_learning/deploy_tuto_05_gradio_sketch_recognition/guide.en-au.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AI Deploy - Tutorial - Deploy a Gradio app for sketch recognition
33
excerpt: How to build and use a custom Docker image containing a Gradio application
4-
updated: 2023-11-27
4+
updated: 2025-06-25
55
---
66

77
> [!primary]
@@ -23,8 +23,8 @@ Overview of the app:
2323

2424
## Requirements
2525

26-
- Access to the [OVHcloud Control Panel](https://ca.ovh.com/auth/?action=gotomanager&from=https://www.ovh.com.au/&ovhSubsidiary=au).
27-
- An AI Deploy project created inside a [Public Cloud project](https://www.ovhcloud.com/en-au/public-cloud/) in your OVHcloud account.
26+
- Access to the [OVHcloud Control Panel](/links/manager).
27+
- An AI Deploy project created inside a [Public Cloud project](/links/public-cloud/public-cloud) in your OVHcloud account.
2828
- A [user for AI Deploy](/pages/public_cloud/ai_machine_learning/gi_01_manage_users).
2929
- [Docker](https://www.docker.com/get-started) installed on your local computer.
3030
- Some knowledge about building image and [Dockerfile](https://docs.docker.com/engine/reference/builder/).
@@ -87,7 +87,7 @@ Load the previously trained model for handwritten digits classification.
8787
>
8888
8989
```python
90-
model = tf.keras.models.load_model("model/sketch_recognition_numbers_model.h5")
90+
model = tf.keras.models.load_model("model/sketch_recognition_numbers_model.h5", compile=False)
9191
```
9292

9393
Create the function that recognizes the written number.
@@ -158,26 +158,27 @@ CMD [ "python3" , "/workspace/app.py" ]
158158

159159
### Build the Docker image from the Dockerfile
160160

161-
Launch the following command from the **Dockerfile** directory to build your application image:
161+
From the directory containing your **Dockerfile**, run one of the following commands to build your application image:
162162

163163
```console
164+
# Build the image using your machine's default architecture
164165
docker build . -t gradio_app:latest
166+
167+
# Build image targeting the linux/amd64 architecture
168+
docker buildx build --platform linux/amd64 -t gradio_app:latest .
165169
```
166170

171+
- The **first command** builds the image using your system’s default architecture. This may work if your machine already uses the `linux/amd64` architecture, which is required to run containers with our AI products. However, on systems with a different architecture (e.g. `ARM64` on `Apple Silicon`), the resulting image will not be compatible and cannot be deployed.
172+
173+
- The **second command** explicitly targets the `linux/AMD64` architecture to ensure compatibility with our AI services. This requires `buildx`, which is not installed by default. If you haven’t used `buildx` before, you can install it by running: `docker buildx install`
174+
167175
> [!primary]
168176
>
169177
> The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
170178
>
171179
> The `-t` argument allows you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **gradio_app:latest**.
172180
>
173181
174-
> [!warning]
175-
>
176-
> Please make sure that the docker image you will push in order to run containers using AI products respects the **linux/AMD64** target architecture. You could, for instance, build your image using **buildx** as follows:
177-
>
178-
> `docker buildx build --platform linux/amd64 ...`
179-
>
180-
181182
### Push the image into the shared registry
182183

183184
> [!warning]
@@ -211,7 +212,7 @@ The following command starts a new AI Deploy app running your Gradio application
211212
```console
212213
ovhai app run \
213214
--cpu 1 \
214-
--volume <my_saved_model>@<region>/:/workspace/model:RO \
215+
--volume <my_saved_model>@<region>/model/:/workspace/model:RO \
215216
<shared-registry-address>/gradio_app:latest
216217
```
217218

@@ -241,11 +242,10 @@ If you want your **AI Deploy app** to be accessible without the need to authenti
241242
- You can imagine deploying an AI model with an other tool: **Flask**. Refer to this [tutorial](/pages/public_cloud/ai_machine_learning/deploy_tuto_06_flask_hugging_face).
242243
- Do you want to use **Streamlit** to create a audio classification app? [Here it is](/pages/public_cloud/ai_machine_learning/deploy_tuto_03_streamlit_sounds_classification).
243244

244-
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/en-au/professional-services/) to get a quote and ask our Professional Services experts for a custom analysis of your project.
245+
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](/links/professional-services) to get a quote and ask our Professional Services experts for a custom analysis of your project.
245246

246247
## Feedback
247248

248249
Please send us your questions, feedback and suggestions to improve the service:
249250

250251
- On the OVHcloud [Discord server](https://discord.gg/ovhcloud)
251-

pages/public_cloud/ai_machine_learning/deploy_tuto_05_gradio_sketch_recognition/guide.en-ca.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AI Deploy - Tutorial - Deploy a Gradio app for sketch recognition
33
excerpt: How to build and use a custom Docker image containing a Gradio application
4-
updated: 2023-11-27
4+
updated: 2025-06-25
55
---
66

77
> [!primary]
@@ -23,8 +23,8 @@ Overview of the app:
2323

2424
## Requirements
2525

26-
- Access to the [OVHcloud Control Panel](https://ca.ovh.com/auth/?action=gotomanager&from=https://www.ovh.com/ca/en/&ovhSubsidiary=ca).
27-
- An AI Deploy project created inside a [Public Cloud project](https://www.ovhcloud.com/en-ca/public-cloud/) in your OVHcloud account.
26+
- Access to the [OVHcloud Control Panel](/links/manager).
27+
- An AI Deploy project created inside a [Public Cloud project](/links/public-cloud/public-cloud) in your OVHcloud account.
2828
- A [user for AI Deploy](/pages/public_cloud/ai_machine_learning/gi_01_manage_users).
2929
- [Docker](https://www.docker.com/get-started) installed on your local computer.
3030
- Some knowledge about building image and [Dockerfile](https://docs.docker.com/engine/reference/builder/).
@@ -87,7 +87,7 @@ Load the previously trained model for handwritten digits classification.
8787
>
8888
8989
```python
90-
model = tf.keras.models.load_model("model/sketch_recognition_numbers_model.h5")
90+
model = tf.keras.models.load_model("model/sketch_recognition_numbers_model.h5", compile=False)
9191
```
9292

9393
Create the function that recognizes the written number.
@@ -158,26 +158,27 @@ CMD [ "python3" , "/workspace/app.py" ]
158158

159159
### Build the Docker image from the Dockerfile
160160

161-
Launch the following command from the **Dockerfile** directory to build your application image:
161+
From the directory containing your **Dockerfile**, run one of the following commands to build your application image:
162162

163163
```console
164+
# Build the image using your machine's default architecture
164165
docker build . -t gradio_app:latest
166+
167+
# Build image targeting the linux/amd64 architecture
168+
docker buildx build --platform linux/amd64 -t gradio_app:latest .
165169
```
166170

171+
- The **first command** builds the image using your system’s default architecture. This may work if your machine already uses the `linux/amd64` architecture, which is required to run containers with our AI products. However, on systems with a different architecture (e.g. `ARM64` on `Apple Silicon`), the resulting image will not be compatible and cannot be deployed.
172+
173+
- The **second command** explicitly targets the `linux/AMD64` architecture to ensure compatibility with our AI services. This requires `buildx`, which is not installed by default. If you haven’t used `buildx` before, you can install it by running: `docker buildx install`
174+
167175
> [!primary]
168176
>
169177
> The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
170178
>
171179
> The `-t` argument allows you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **gradio_app:latest**.
172180
>
173181
174-
> [!warning]
175-
>
176-
> Please make sure that the docker image you will push in order to run containers using AI products respects the **linux/AMD64** target architecture. You could, for instance, build your image using **buildx** as follows:
177-
>
178-
> `docker buildx build --platform linux/amd64 ...`
179-
>
180-
181182
### Push the image into the shared registry
182183

183184
> [!warning]
@@ -211,7 +212,7 @@ The following command starts a new AI Deploy app running your Gradio application
211212
```console
212213
ovhai app run \
213214
--cpu 1 \
214-
--volume <my_saved_model>@<region>/:/workspace/model:RO \
215+
--volume <my_saved_model>@<region>/model/:/workspace/model:RO \
215216
<shared-registry-address>/gradio_app:latest
216217
```
217218

@@ -241,11 +242,10 @@ If you want your **AI Deploy app** to be accessible without the need to authenti
241242
- You can imagine deploying an AI model with an other tool: **Flask**. Refer to this [tutorial](/pages/public_cloud/ai_machine_learning/deploy_tuto_06_flask_hugging_face).
242243
- Do you want to use **Streamlit** to create a audio classification app? [Here it is](/pages/public_cloud/ai_machine_learning/deploy_tuto_03_streamlit_sounds_classification).
243244

244-
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/en-ca/professional-services/) to get a quote and ask our Professional Services experts for a custom analysis of your project.
245+
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](/links/professional-services) to get a quote and ask our Professional Services experts for a custom analysis of your project.
245246

246247
## Feedback
247248

248249
Please send us your questions, feedback and suggestions to improve the service:
249250

250251
- On the OVHcloud [Discord server](https://discord.gg/ovhcloud)
251-

pages/public_cloud/ai_machine_learning/deploy_tuto_05_gradio_sketch_recognition/guide.en-gb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AI Deploy - Tutorial - Deploy a Gradio app for sketch recognition
33
excerpt: How to build and use a custom Docker image containing a Gradio application
4-
updated: 2023-11-27
4+
updated: 2025-06-25
55
---
66

77
> [!primary]

0 commit comments

Comments
 (0)