Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 59 |
-
- location (str): The user's location
|
| 60 |
-
- user_preferences (dict): A dictionary containing user-specific preferences
|
| 61 |
-
|
|
|
|
| 62 |
Returns:
|
| 63 |
-
- dict: A dictionary containing recommended movie details
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|