Spaces:
Running
Running
ashwinpatti
commited on
Commit
·
f03d1da
1
Parent(s):
b126ae8
Update app.py
Browse files
app.py
CHANGED
@@ -68,16 +68,17 @@ def search(query,top_k=15):
|
|
68 |
def displayResults(results, container):
|
69 |
for result in results:
|
70 |
container.header(result['name'])
|
71 |
-
container.
|
72 |
-
container.caption(f"Language:{result['language']}")
|
73 |
container.caption(f"Released in:{result['year']}")
|
74 |
cast = ",".join(result['cast'])
|
75 |
container.caption(f"Cast:{result['cast']}")
|
76 |
-
container.
|
77 |
movieLink = f"[{result['name']}](https://en.wikipedia.org{result['link']}"
|
78 |
-
container.markdown(f"[{result['name']}](https://en.wikipedia.org{result['link']}",unsafe_allow_html=True)
|
79 |
with container.expander("Movie result internals"):
|
|
|
80 |
container.json(result)
|
|
|
81 |
|
82 |
st.title("Semantic Indian Movie Search");
|
83 |
#appTab, detailsTab = st.tabs(["App", "Details"])
|
|
|
68 |
def displayResults(results, container):
|
69 |
for result in results:
|
70 |
container.header(result['name'])
|
71 |
+
container.text(f"Language: {result['language']}")
|
|
|
72 |
container.caption(f"Released in:{result['year']}")
|
73 |
cast = ",".join(result['cast'])
|
74 |
container.caption(f"Cast:{result['cast']}")
|
75 |
+
container.markdown(f'''{result['plot']}''')
|
76 |
movieLink = f"[{result['name']}](https://en.wikipedia.org{result['link']}"
|
77 |
+
container.markdown(f"""[{result['name']}](https://en.wikipedia.org{result['link']}""",unsafe_allow_html=True)
|
78 |
with container.expander("Movie result internals"):
|
79 |
+
container.text("JSON Result:")
|
80 |
container.json(result)
|
81 |
+
container.divider()
|
82 |
|
83 |
st.title("Semantic Indian Movie Search");
|
84 |
#appTab, detailsTab = st.tabs(["App", "Details"])
|