Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -98,14 +98,16 @@ with demo:
|
|
98 |
|
99 |
with gr.Row():
|
100 |
gr.Markdown(f'''Top-{top_k} Bi-Encoder Retrieval hits''')
|
101 |
-
bi_output = gr.DataFrame(headers=['Similarity Score','Type','Title','Country','Cast','Release Year','Rating','Duration','Category Listing','Description']
|
|
|
102 |
|
103 |
with gr.Row():
|
104 |
gr.Markdown(f'''Top-{top_k} Cross-Encoder Re-ranker hits''')
|
105 |
-
cross_output = gr.DataFrame(headers=['Similarity Score','Type','Title','Country','Cast','Release Year','Rating','Duration','Category Listing','Description']
|
|
|
106 |
|
107 |
with gr.Row():
|
108 |
-
|
109 |
|
110 |
|
111 |
sem_but = gr.Button('Search')
|
|
|
98 |
|
99 |
with gr.Row():
|
100 |
gr.Markdown(f'''Top-{top_k} Bi-Encoder Retrieval hits''')
|
101 |
+
bi_output = gr.DataFrame(headers=['Similarity Score','Type','Title','Country','Cast','Release Year','Rating','Duration','Category Listing','Description'],
|
102 |
+
datatype=['number','str','str','str','str','number','str','str','str','str'])
|
103 |
|
104 |
with gr.Row():
|
105 |
gr.Markdown(f'''Top-{top_k} Cross-Encoder Re-ranker hits''')
|
106 |
+
cross_output = gr.DataFrame(headers=['Similarity Score','Type','Title','Country','Cast','Release Year','Rating','Duration','Category Listing','Description'],
|
107 |
+
datatype=['number','str','str','str','str','number','str','str','str','str'])
|
108 |
|
109 |
with gr.Row():
|
110 |
+
examples = gr.Examples(examples=example_queries,inputs=[query])
|
111 |
|
112 |
|
113 |
sem_but = gr.Button('Search')
|