Vivien
commited on
Commit
β’
e3b2cc5
1
Parent(s):
7600dc3
Specify number of pictures
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ description = '''
|
|
49 |
|
50 |
**Enter your query and hit enter**
|
51 |
|
52 |
-
*Built with OpenAI's [CLIP](https://openai.com/blog/clip/) model, π€ Hugging Face's [transformers library](https://huggingface.co/transformers/), [Streamlit](https://streamlit.io/)
|
53 |
'''
|
54 |
|
55 |
def main():
|
@@ -83,7 +83,7 @@ def main():
|
|
83 |
unsafe_allow_html=True)
|
84 |
st.sidebar.markdown(description)
|
85 |
_, c, _ = st.beta_columns((1, 3, 1))
|
86 |
-
query = c.text_input('')
|
87 |
corpus = st.radio('', ["Unsplash","Movies"])
|
88 |
if len(query) > 0:
|
89 |
results = image_search(query, corpus)
|
|
|
49 |
|
50 |
**Enter your query and hit enter**
|
51 |
|
52 |
+
*Built with OpenAI's [CLIP](https://openai.com/blog/clip/) model, π€ Hugging Face's [transformers library](https://huggingface.co/transformers/), [Streamlit](https://streamlit.io/), 25k images from [Unsplash](https://unsplash.com/) and 8k images from [The Movie Database (TMDB)](https://www.themoviedb.org/)*
|
53 |
'''
|
54 |
|
55 |
def main():
|
|
|
83 |
unsafe_allow_html=True)
|
84 |
st.sidebar.markdown(description)
|
85 |
_, c, _ = st.beta_columns((1, 3, 1))
|
86 |
+
query = c.text_input('clouds at sunset')
|
87 |
corpus = st.radio('', ["Unsplash","Movies"])
|
88 |
if len(query) > 0:
|
89 |
results = image_search(query, corpus)
|