madoss commited on
Commit
8c16bb1
·
1 Parent(s): 7707f43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -46,9 +46,7 @@ iface = gr.Interface(
46
  gr.inputs.Number(label="K", default=3),
47
  ],
48
  outputs=[
49
- gr.outputs.Textbox(label="Result 1"),
50
- gr.outputs.Textbox(label="Result 2"),
51
- gr.outputs.Textbox(label="Result 3"),
52
  ],
53
  title="Camembert and Faiss-powered Search Engine",
54
  description="Search through a dataset using Camembert and Faiss",
 
46
  gr.inputs.Number(label="K", default=3),
47
  ],
48
  outputs=[
49
+ gr.outputs.Textbox(label=f"Result {i}") for i in range(K)
 
 
50
  ],
51
  title="Camembert and Faiss-powered Search Engine",
52
  description="Search through a dataset using Camembert and Faiss",