Spaces:
Runtime error
Runtime error
jamescalam
commited on
Commit
•
2ccdcf8
1
Parent(s):
2a45805
Update app.py
Browse files
app.py
CHANGED
@@ -43,6 +43,7 @@ def card(thumbnail: str, title: str, urls: list, contexts: list, starts: list, e
|
|
43 |
html_text += "<br>"
|
44 |
else:
|
45 |
html_text += f"<small><a href={url}>{text.strip()}... </a></small>"
|
|
|
46 |
html = f"""
|
47 |
<div class="container-fluid">
|
48 |
<div class="row align-items-start">
|
@@ -73,7 +74,7 @@ st.markdown("""
|
|
73 |
query = st.text_input("Search!", "")
|
74 |
|
75 |
if query != "":
|
76 |
-
print(query)
|
77 |
xq = retriever.encode([query]).tolist()
|
78 |
xc = index.query(xq, top_k=5, include_metadata=True)
|
79 |
|
|
|
43 |
html_text += "<br>"
|
44 |
else:
|
45 |
html_text += f"<small><a href={url}>{text.strip()}... </a></small>"
|
46 |
+
print(text)
|
47 |
html = f"""
|
48 |
<div class="container-fluid">
|
49 |
<div class="row align-items-start">
|
|
|
74 |
query = st.text_input("Search!", "")
|
75 |
|
76 |
if query != "":
|
77 |
+
print(f"query: {query}")
|
78 |
xq = retriever.encode([query]).tolist()
|
79 |
xc = index.query(xq, top_k=5, include_metadata=True)
|
80 |
|