Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,6 +22,8 @@ def main():
|
|
| 22 |
folder_path = 'WayveScenes/'
|
| 23 |
else:
|
| 24 |
folder_path = ''
|
|
|
|
|
|
|
| 25 |
# Input search query
|
| 26 |
query = st.text_input("Enter your search query")
|
| 27 |
|
|
@@ -34,8 +36,6 @@ def main():
|
|
| 34 |
if not query:
|
| 35 |
st.warning("Please enter a search query.")
|
| 36 |
else:
|
| 37 |
-
# Load the selected dataset
|
| 38 |
-
df = load_hf_datasets(dataset_name)
|
| 39 |
|
| 40 |
# Perform the search
|
| 41 |
results = search(query, df, limit, 0, "cosine", search_in_images=True, search_in_small_objects=False)
|
|
|
|
| 22 |
folder_path = 'WayveScenes/'
|
| 23 |
else:
|
| 24 |
folder_path = ''
|
| 25 |
+
# Load the selected dataset
|
| 26 |
+
df = load_hf_datasets(dataset_name)
|
| 27 |
# Input search query
|
| 28 |
query = st.text_input("Enter your search query")
|
| 29 |
|
|
|
|
| 36 |
if not query:
|
| 37 |
st.warning("Please enter a search query.")
|
| 38 |
else:
|
|
|
|
|
|
|
| 39 |
|
| 40 |
# Perform the search
|
| 41 |
results = search(query, df, limit, 0, "cosine", search_in_images=True, search_in_small_objects=False)
|