Spaces:
Runtime error
Runtime error
troubleshooting
Browse files
app.py
CHANGED
@@ -26,6 +26,8 @@ def url2img(url):
|
|
26 |
|
27 |
def find_topk(text):
|
28 |
|
|
|
|
|
29 |
top_k = 10
|
30 |
|
31 |
text_data = model_multi.preprocess_text(text)
|
@@ -37,6 +39,8 @@ def find_topk(text):
|
|
37 |
|
38 |
top_k_urls = img_df.iloc[inds]['url'].values
|
39 |
|
|
|
|
|
40 |
return [url2img(url) for url in top_k_urls]
|
41 |
|
42 |
|
|
|
26 |
|
27 |
def find_topk(text):
|
28 |
|
29 |
+
print('text', text)
|
30 |
+
|
31 |
top_k = 10
|
32 |
|
33 |
text_data = model_multi.preprocess_text(text)
|
|
|
39 |
|
40 |
top_k_urls = img_df.iloc[inds]['url'].values
|
41 |
|
42 |
+
print('top_k_urls', top_k_urls)
|
43 |
+
|
44 |
return [url2img(url) for url in top_k_urls]
|
45 |
|
46 |
|