Spaces:
Sleeping
Sleeping
Update app.py
Browse filesfix indent error
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def get_bookbrain()-> str:
|
|
| 37 |
f"Title: {title}\nAuthor: {author}\nTopics: {topics}\nSummary: {summary}"
|
| 38 |
)
|
| 39 |
|
| 40 |
-
|
| 41 |
except Exception as e:
|
| 42 |
return f"Failed to fetch books from BookBrain due to: {str(e)}"
|
| 43 |
|
|
|
|
| 37 |
f"Title: {title}\nAuthor: {author}\nTopics: {topics}\nSummary: {summary}"
|
| 38 |
)
|
| 39 |
|
| 40 |
+
return "\n\n---\n\n".join(books_str_list) if books_str_list else "No books found."
|
| 41 |
except Exception as e:
|
| 42 |
return f"Failed to fetch books from BookBrain due to: {str(e)}"
|
| 43 |
|