KidIkaros commited on
Commit
cda4a6f
·
verified ·
1 Parent(s): 665c11e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -34,8 +34,8 @@ def asoiaf_book(query: str) -> str:
34
  """Handle book queries by ID or name. Returns JSON with {title, authors, pages, characters}
35
 
36
  Args:
37
- query: The book ID (1-12) or name (e.g., 'A Game of Thrones'). <-- Corrected!
38
- """ # <--- Closing triple quotes here
39
  try:
40
  if query.isdigit():
41
  book_id = int(query)
@@ -66,9 +66,9 @@ def asoiaf_book(query: str) -> str:
66
  def asoiaf_character(query: str) -> str:
67
  """Resolve questions about characters. Returns JSON with: {name, aliases, titles, actor, house, error}
68
 
69
- Args: # <--- Important: Args section needs to be present
70
- query: The character name or description (e.g., 'Mother of Dragons'). <-- Corrected!
71
- """
72
  try:
73
  clean_query = normalize_input(query)
74
  name_keywords = ["who is", "plays", "actor for", "information about"]
@@ -114,7 +114,7 @@ def asoiaf_house(query: str) -> str:
114
  """Resolve house-related queries. Returns JSON with {name, region, words, members}
115
 
116
  Args:
117
- query: The region or house name (e.g., 'The North', 'Stark').
118
  """
119
  try:
120
  response = requests.get(
 
34
  """Handle book queries by ID or name. Returns JSON with {title, authors, pages, characters}
35
 
36
  Args:
37
+ query: The book ID (1-12) or name (e.g., 'A Game of Thrones')
38
+ """
39
  try:
40
  if query.isdigit():
41
  book_id = int(query)
 
66
  def asoiaf_character(query: str) -> str:
67
  """Resolve questions about characters. Returns JSON with: {name, aliases, titles, actor, house, error}
68
 
69
+ Args:
70
+ query: The character name or description (e.g., 'Mother of Dragons')
71
+ """
72
  try:
73
  clean_query = normalize_input(query)
74
  name_keywords = ["who is", "plays", "actor for", "information about"]
 
114
  """Resolve house-related queries. Returns JSON with {name, region, words, members}
115
 
116
  Args:
117
+ query: The region or house name (e.g., 'The North', 'Stark')
118
  """
119
  try:
120
  response = requests.get(