diff --git a/private-ai-services-container/lab4-flask-image-search/lab4-flask-image-search.md b/private-ai-services-container/lab4-flask-image-search/lab4-flask-image-search.md index 9ea4b1f82..fadae098f 100644 --- a/private-ai-services-container/lab4-flask-image-search/lab4-flask-image-search.md +++ b/private-ai-services-container/lab4-flask-image-search/lab4-flask-image-search.md @@ -329,194 +329,11 @@ This lab assumes: ``` -2. Create `~/image-search-lab/templates/index.html` with the following code: +2. Open a terminal and run the following command to copy the `index.html` to the templates folder: - ```html + ```bash - - - - - - Private AI CLIP Image Search - - - -
-
-

Private AI CLIP Image Search

-

Image embeddings model: {{ image_model_id }}

-

Text embeddings model: {{ text_model_id }}

-
-
Total indexed images: {{ total_images }}
-
Top-K results: 10
-
-
- - {% with messages = get_flashed_messages(with_categories=true) %} - {% if messages %} - {% for category, msg in messages %} -
{{ msg }}
- {% endfor %} - {% endif %} - {% endwith %} - -
-
-

1) Load Image Library into Database

-
- - - - -
-
- -
-

2) Search by Text

-
- - - - -
-
-
- - {% if results %} -
-

Search Results

-

Query: {{ query }}

-
- {% for r in results %} -
- {{ r.filename }} -
-
{{ r.filename }}
-
Category: {{ r.category }}
-
Similarity: {{ r.similarity }}
-
-
- {% endfor %} -
-
- {% endif %} -
- - + curl -fsSL "https://raw.githubusercontent.com/oracle-livelabs/developer/main/private-ai-services-container/lab4-flask-image-search/files/templates/index.html" -o ~/image-search-lab/templates/index.html
```