nickmuchi commited on
Commit
a0e6621
1 Parent(s): c2e4dba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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
- example_url = gr.Examples(examples=example_queries,inputs=[query])
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')