Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def get_similar_quotes(philosopher, question):
|
|
51 |
similar_sentences = [df['quote'][i] for i in ind]
|
52 |
top4quotes = pd.DataFrame(data = similar_sentences, columns=["Quotes"], index=range(1,5))
|
53 |
top4quotes['Quotes'] = top4quotes['Quotes'].str[:-1].str[:250] + "..."
|
54 |
-
return
|
55 |
|
56 |
def main(question, philosopher):
|
57 |
out_image = "marcus-aurelius.jpg"
|
|
|
51 |
similar_sentences = [df['quote'][i] for i in ind]
|
52 |
top4quotes = pd.DataFrame(data = similar_sentences, columns=["Quotes"], index=range(1,5))
|
53 |
top4quotes['Quotes'] = top4quotes['Quotes'].str[:-1].str[:250] + "..."
|
54 |
+
return top4quotes
|
55 |
|
56 |
def main(question, philosopher):
|
57 |
out_image = "marcus-aurelius.jpg"
|