Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,6 +45,18 @@ if __name__ == "__main__":
|
|
| 45 |
["happiness"],
|
| 46 |
["overcoming failure"],
|
| 47 |
["friendship"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
]
|
| 49 |
)
|
| 50 |
|
|
|
|
|
|
|
|
|
| 45 |
["happiness"],
|
| 46 |
["overcoming failure"],
|
| 47 |
["friendship"]
|
| 48 |
+
]demo = gr.Interface(
|
| 49 |
+
fn=get_top3,
|
| 50 |
+
inputs=gr.Textbox(lines=2, placeholder="Type something..."),
|
| 51 |
+
outputs="text",
|
| 52 |
+
title="Quote Finder (1,000+ quotes)",
|
| 53 |
+
description="Enter any sentence to find 3 semantically similar quotes.",
|
| 54 |
+
examples=[
|
| 55 |
+
["happiness"],
|
| 56 |
+
["overcoming fear"],
|
| 57 |
+
["success in life"]
|
| 58 |
]
|
| 59 |
)
|
| 60 |
|
| 61 |
+
)
|
| 62 |
+
|