vadhri commited on
Commit
16a92e0
·
verified ·
1 Parent(s): ecb4f5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -20,7 +20,8 @@ def movie_info(arg1:str)-> str: #it's import to specify the return type
20
  Args:
21
  arg1: name of the movie
22
  """
23
-
 
24
  try:
25
  # read and create an object of information about a movie requested.
26
  filtered_movies = [movie for movie in movies if movie["Title"].lower() == arg1.lower()]
@@ -36,6 +37,7 @@ def movie_info(arg1:str)-> str: #it's import to specify the return type
36
  output += "\n"
37
  else:
38
  output = "No information on that movie found!"
 
39
  return output
40
  except Exception as e:
41
  return f"Error movies json and formatting."
 
20
  Args:
21
  arg1: name of the movie
22
  """
23
+ print ("Extracting movie info for --> ", arg1)
24
+
25
  try:
26
  # read and create an object of information about a movie requested.
27
  filtered_movies = [movie for movie in movies if movie["Title"].lower() == arg1.lower()]
 
37
  output += "\n"
38
  else:
39
  output = "No information on that movie found!"
40
+ print ("output = ", output)
41
  return output
42
  except Exception as e:
43
  return f"Error movies json and formatting."