Skip to content

Commit

Permalink
Merge branch 'main' into enhance-design
Browse files Browse the repository at this point in the history
  • Loading branch information
seyeong-han authored Nov 25, 2024
2 parents 1319973 + 12f0d4a commit fa681f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def jsonify_graph_response(response):
"""Extract and parse JSON content from graph response."""
try:
content = response.completion_message.content
print("content: ", content)
# Find indices of first { and last }
start_idx = content.find('{')
end_idx = content.rfind('}')
Expand Down Expand Up @@ -137,6 +138,8 @@ async def process_book(book_title):

graph_response = await get_graph_response(text_response, client)

print("graph_response: ", graph_response)

graph_data = ""
try:
graph_data = jsonify_graph_response(graph_response)
Expand Down
1 change: 1 addition & 0 deletions src/pages/bookPage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export default function BookPage() {
Home
</Link>
</div>

{/* Search Section */}
<div className="max-w-md mx-auto mb-16">
<h1 className="text-4xl font-extrabold text-center mb-8 text-gray-800 tracking-tight">
Expand Down

0 comments on commit fa681f8

Please sign in to comment.