AmirShabani
commited on
Commit
•
45d4c99
1
Parent(s):
474d0e7
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,18 @@ def get_data(movie):
|
|
53 |
"genres": genres,
|
54 |
"rating": rating,
|
55 |
"year" : year
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
# Recommendation Function
|
59 |
from core import output_list
|
|
|
53 |
"genres": genres,
|
54 |
"rating": rating,
|
55 |
"year" : year
|
56 |
+
}
|
57 |
+
else:
|
58 |
+
return {
|
59 |
+
"status": 'False',
|
60 |
+
"poster": 'https://en.wikiquote.org/wiki/Black',
|
61 |
+
"title": 'Movie not found!',
|
62 |
+
"director": '',
|
63 |
+
"cast": '',
|
64 |
+
"genres": '',
|
65 |
+
"rating": '',
|
66 |
+
"year" : ''
|
67 |
+
}
|
68 |
|
69 |
# Recommendation Function
|
70 |
from core import output_list
|