Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import ripple
|
| 2 |
import streamlit as stl
|
| 3 |
-
from tqdm.auto import tqdm
|
| 4 |
|
| 5 |
# streamlit app
|
| 6 |
stl.set_page_config(
|
|
@@ -9,7 +8,7 @@ stl.set_page_config(
|
|
| 9 |
|
| 10 |
stl.title("ripple search")
|
| 11 |
stl.write(
|
| 12 |
-
"An app that uses text input to search for described images, using embeddings of selected image datasets. Uses contrastive learning models(CLIP) and the sentence
|
| 13 |
)
|
| 14 |
stl.link_button(
|
| 15 |
label="link to github and full library code",
|
|
@@ -59,4 +58,5 @@ if search_term:
|
|
| 59 |
|
| 60 |
for count, score, image in tqdm(zip(range(len(ret_images)), scores, ret_images)):
|
| 61 |
stl.image(image["image"][count])
|
| 62 |
-
stl.write(score)
|
|
|
|
|
|
| 1 |
import ripple
|
| 2 |
import streamlit as stl
|
|
|
|
| 3 |
|
| 4 |
# streamlit app
|
| 5 |
stl.set_page_config(
|
|
|
|
| 8 |
|
| 9 |
stl.title("ripple search")
|
| 10 |
stl.write(
|
| 11 |
+
"An app that uses text input to search for described images, using embeddings of selected image datasets. Uses contrastive learning models(CLIP) and the sentence-transformers"
|
| 12 |
)
|
| 13 |
stl.link_button(
|
| 14 |
label="link to github and full library code",
|
|
|
|
| 58 |
|
| 59 |
for count, score, image in tqdm(zip(range(len(ret_images)), scores, ret_images)):
|
| 60 |
stl.image(image["image"][count])
|
| 61 |
+
stl.write(score)
|
| 62 |
+
|