Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def recommend_movies(movie):
|
|
57 |
print(f"The longest movie name length is: {max_length}")
|
58 |
|
59 |
headers = "Score{:10}Title".format("")
|
60 |
-
return headers + "\n" + "\n".join([f"{score:>
|
61 |
|
62 |
|
63 |
# Create the Gradio interface
|
|
|
57 |
print(f"The longest movie name length is: {max_length}")
|
58 |
|
59 |
headers = "Score{:10}Title".format("")
|
60 |
+
return headers + "\n" + "\n".join([f"{score:>10.2f} {title:<20} " for title, score in recommendations])
|
61 |
|
62 |
|
63 |
# Create the Gradio interface
|