Skip to content

FIX-Deploy a Gradio app for sketch recognition #8019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Load the previously trained model for handwritten digits classification.
>

```python
model = tf.keras.models.load_model("model/sketch_recognition_numbers_model.h5")
model = tf.keras.models.load_model("model/sketch_recognition_numbers_model.h5", compile=False)
```

Create the function that recognizes the written number.
Expand Down Expand Up @@ -161,7 +161,7 @@ CMD [ "python3" , "/workspace/app.py" ]
Launch the following command from the **Dockerfile** directory to build your application image:

```console
docker build . -t gradio_app:latest
docker buildx build --platform linux/amd64 -t gradio_app:latest
```

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

Expand Down