File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
pages/public_cloud/ai_machine_learning/deploy_tuto_05_gradio_sketch_recognition Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ Load the previously trained model for handwritten digits classification.
87
87
>
88
88
89
89
``` 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 )
91
91
```
92
92
93
93
Create the function that recognizes the written number.
@@ -161,7 +161,7 @@ CMD [ "python3" , "/workspace/app.py" ]
161
161
Launch the following command from the ** Dockerfile** directory to build your application image:
162
162
163
163
``` console
164
- docker build . -t gradio_app:latest
164
+ docker buildx build --platform linux/amd64 -t gradio_app:latest
165
165
```
166
166
167
167
> [ !primary]
@@ -211,7 +211,7 @@ The following command starts a new AI Deploy app running your Gradio application
211
211
``` console
212
212
ovhai app run \
213
213
--cpu 1 \
214
- --volume <my_saved_model>@<region>/:/workspace/model:RO \
214
+ --volume <my_saved_model>@<region>/model/ :/workspace/model:RO \
215
215
<shared-registry-address>/gradio_app:latest
216
216
```
217
217
You can’t perform that action at this time.
0 commit comments