Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,17 +11,16 @@ def recommend(movie_name):
|
|
| 11 |
)
|
| 12 |
data_list = response_json['data']
|
| 13 |
df = pd.DataFrame(data_list)
|
| 14 |
-
return df
|
| 15 |
|
| 16 |
# Add an example for the UI
|
| 17 |
examples = [
|
| 18 |
["The Dark Knight"],
|
| 19 |
["Inception"],
|
| 20 |
-
["Interstellar"]
|
| 21 |
-
["Aliens vs Predator: Requiem"]
|
| 22 |
]
|
| 23 |
|
| 24 |
-
gr.Interface(fn=recommend, inputs="text", outputs=
|
| 25 |
description="Enter a Hollywood movie name, and this system will recommend similar movies based on your input.",
|
| 26 |
examples=examples # Add examples to the UI
|
| 27 |
).launch()
|
|
|
|
| 11 |
)
|
| 12 |
data_list = response_json['data']
|
| 13 |
df = pd.DataFrame(data_list)
|
| 14 |
+
return df
|
| 15 |
|
| 16 |
# Add an example for the UI
|
| 17 |
examples = [
|
| 18 |
["The Dark Knight"],
|
| 19 |
["Inception"],
|
| 20 |
+
["Interstellar"]
|
|
|
|
| 21 |
]
|
| 22 |
|
| 23 |
+
gr.Interface(fn=recommend, inputs="text", outputs=gr.DataFrame(), title="Hollywood Movie Recommendation System",
|
| 24 |
description="Enter a Hollywood movie name, and this system will recommend similar movies based on your input.",
|
| 25 |
examples=examples # Add examples to the UI
|
| 26 |
).launch()
|