Spaces:
Runtime error
Runtime error
Commit ·
92d8b8b
1
Parent(s): 57336c2
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
import torch
|
| 3 |
from transformers import AutoTokenizer, AutoModel
|
| 4 |
import faiss
|
|
@@ -65,7 +66,6 @@ if st.button("Search"):
|
|
| 65 |
# Display the images
|
| 66 |
st.image(image_urls, width=200)
|
| 67 |
|
| 68 |
-
if __name__ == '__main__':
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
run_app()
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
st.set_page_config(page_title='Image Search App', layout='wide')
|
| 3 |
import torch
|
| 4 |
from transformers import AutoTokenizer, AutoModel
|
| 5 |
import faiss
|
|
|
|
| 66 |
# Display the images
|
| 67 |
st.image(image_urls, width=200)
|
| 68 |
|
| 69 |
+
# if __name__ == '__main__':
|
| 70 |
+
st.cache(allow_output_mutation=True)
|
| 71 |
+
run_app()
|
|
|