AmirShabani
commited on
Commit
·
3adde17
1
Parent(s):
0c43bc8
last commit, fix the recommender
Browse files- gradio_app.py +4 -2
gradio_app.py
CHANGED
@@ -121,10 +121,12 @@ def display_movie(movie, rating):
|
|
121 |
iface = gr.Interface(
|
122 |
|
123 |
fn= display_movie,
|
124 |
-
inputs= [gr.Textbox(label="Enter a movie name"), gr.Slider(minimum=0, maximum=5, step=1, label="Rate the movie")],
|
125 |
outputs= [gr.Textbox(label="Output", min_width=200), gr.components.Image(label="Poster", height=400, width=300), gr.components.HTML(label="Recommendations", height=400)],
|
126 |
live= False,
|
127 |
-
examples=[["The Matrix"], ["The Lion King"], ["Titanic"], ['Fight Club'], ["Inception"]]
|
|
|
|
|
128 |
)
|
129 |
|
130 |
iface.launch()
|
|
|
121 |
iface = gr.Interface(
|
122 |
|
123 |
fn= display_movie,
|
124 |
+
inputs= [gr.Textbox(label="Enter a movie name (five movie in total!)"), gr.Slider(minimum=0, maximum=5, step=1, label="Rate the movie")],
|
125 |
outputs= [gr.Textbox(label="Output", min_width=200), gr.components.Image(label="Poster", height=400, width=300), gr.components.HTML(label="Recommendations", height=400)],
|
126 |
live= False,
|
127 |
+
examples=[["The Matrix"], ["The Lion King"], ["Titanic"], ['Fight Club'], ["Inception"]],
|
128 |
+
title = "Movie Recommender",
|
129 |
+
|
130 |
)
|
131 |
|
132 |
iface.launch()
|