Alptraum commited on
Commit
e9fa620
·
verified ·
1 Parent(s): 19ab2c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -55,12 +55,17 @@ def get_movie_recommendation(mood: str, location: str, user_preferences: dict) -
55
  and personal preferences.
56
 
57
  Parameters:
58
- - mood (str): The user's current mood (e.g., happy, sad, nostalgic, adventurous).
59
- - location (str): The user's location for fetching weather data.
60
- - user_preferences (dict): A dictionary containing user-specific preferences (e.g., favorite genres, actors).
61
-
 
62
  Returns:
63
- - dict: A dictionary containing recommended movie details (title, genre, description, rating).
 
 
 
 
64
  """
65
 
66
  # Fetch weather data from a free API (wttr.in)
 
55
  and personal preferences.
56
 
57
  Parameters:
58
+ - mood (str): The user's current mood, such as "happy," "sad," "nostalgic," or "adventurous."
59
+ - location (str): The name of the user's location, used to fetch real-time weather data.
60
+ - user_preferences (dict): A dictionary containing user-specific preferences,
61
+ including favorite genres and actors.
62
+
63
  Returns:
64
+ - dict: A dictionary containing recommended movie details:
65
+ - "title" (str): The name of the recommended movie.
66
+ - "genre" (list): A list of genres the movie falls under.
67
+ - "description" (str): A brief summary of the movie.
68
+ - "link" (str): A link to more information about the movie.
69
  """
70
 
71
  # Fetch weather data from a free API (wttr.in)