Update app.py
Browse files
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.
|
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
|