danschnurp commited on
Commit
5e9caa2
·
verified ·
1 Parent(s): b8a58f7

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
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=gr.Dataframe(
201
- headers=["Rank", "Title", "Author", "Year", "Publisher", "ISBN", "Rating"],
202
- type="pandas"
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()