Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -197,14 +197,19 @@ iface = gr.Interface(
|
|
197 |
gr.Textbox(label="Enter a book title"),
|
198 |
gr.Slider(minimum=1, maximum=20, step=1, label="Number of recommendations", value=10)
|
199 |
],
|
200 |
-
outputs=
|
201 |
-
|
202 |
-
|
203 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
title="Book Recommender",
|
205 |
description="Enter a book title to get recommendations based on user ratings and book similarities."
|
206 |
)
|
207 |
|
208 |
-
|
209 |
# Launch the app
|
210 |
iface.launch()
|
|
|
197 |
gr.Textbox(label="Enter a book title"),
|
198 |
gr.Slider(minimum=1, maximum=20, step=1, label="Number of recommendations", value=10)
|
199 |
],
|
200 |
+
outputs=[
|
201 |
+
gr.Dataframe(
|
202 |
+
headers=["Rank", "Title", "Author", "Year", "Publisher", "ISBN", "Rating"],
|
203 |
+
type="pandas",
|
204 |
+
wrap=True,
|
205 |
+
height=500,
|
206 |
+
width=1000
|
207 |
+
),
|
208 |
+
gr.JSON(label="Detailed Recommendations")
|
209 |
+
],
|
210 |
title="Book Recommender",
|
211 |
description="Enter a book title to get recommendations based on user ratings and book similarities."
|
212 |
)
|
213 |
|
|
|
214 |
# Launch the app
|
215 |
iface.launch()
|