jsodoge commited on
Commit
73a582c
·
verified ·
1 Parent(s): 7bf2cd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -59,10 +59,7 @@ def server(input, output, session):
59
  top_indices = np.argsort(similarities)[-5:][::-1]
60
 
61
  # Prepare the results to display
62
- result_boxes = ui.tag_list()
63
- for idx in top_indices:
64
- result_boxes.append(ui.div(queries[idx], class_="result-box"))
65
- return result_boxes
66
  return ui.div("Please enter text and press the button.")
67
 
68
  # Create the Shiny app
 
59
  top_indices = np.argsort(similarities)[-5:][::-1]
60
 
61
  # Prepare the results to display
62
+ result_boxes = [ui.div(queries[idx], class_="result-box") for idx in top_indices]
 
 
 
63
  return ui.div("Please enter text and press the button.")
64
 
65
  # Create the Shiny app