Skip to content

Commit 7fa5e27

Browse files
authored
FIX-Deploy a Gradio app for sketch recognition
Code fixes from US testing.
1 parent 1113715 commit 7fa5e27

File tree

1 file changed

+3
-3
lines changed
  • pages/public_cloud/ai_machine_learning/deploy_tuto_05_gradio_sketch_recognition

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
@@ -161,7 +161,7 @@ CMD [ "python3" , "/workspace/app.py" ]
161161
Launch the following command from the **Dockerfile** directory to build your application image:
162162

163163
```console
164-
docker build . -t gradio_app:latest
164+
docker buildx build --platform linux/amd64 -t gradio_app:latest
165165
```
166166

167167
> [!primary]
@@ -211,7 +211,7 @@ The following command starts a new AI Deploy app running your Gradio application
211211
```console
212212
ovhai app run \
213213
--cpu 1 \
214-
--volume <my_saved_model>@<region>/:/workspace/model:RO \
214+
--volume <my_saved_model>@<region>/model/:/workspace/model:RO \
215215
<shared-registry-address>/gradio_app:latest
216216
```
217217

0 commit comments

Comments
 (0)