Harsh502s commited on
Commit
9f6bda5
·
1 Parent(s): 6dbc412
Files changed (2) hide show
  1. .gitignore +2 -1
  2. Pages/Recommender App.py +44 -32
.gitignore CHANGED
@@ -1 +1,2 @@
1
- Dockerfile
 
 
1
+ Dockerfile
2
+ Pages/Recommender App Dev Copy.py
Pages/Recommender App.py CHANGED
@@ -97,6 +97,9 @@ def top_animes():
97
  border-radius: 15px;
98
  text-align: center;
99
  }
 
 
 
100
  a.st-emotion-cache-1lbx6hs.e16zdaao0:hover {
101
  scale: 1.05;
102
  transition-duration: 0.3s;
@@ -115,28 +118,28 @@ def top_animes():
115
  f"{top8.iloc[0].anime_url}",
116
  use_container_width=True,
117
  )
118
- st.image(top8.iloc[0].poster)
119
  with col1:
120
  st.link_button(
121
  f"{top8.iloc[1].title}",
122
  f"{top8.iloc[1].anime_url}",
123
  use_container_width=True,
124
  )
125
- st.image(top8.iloc[1].poster)
126
  with col2:
127
  st.link_button(
128
  f"{top8.iloc[2].title}",
129
  f"{top8.iloc[2].anime_url}",
130
  use_container_width=True,
131
  )
132
- st.image(top8.iloc[2].poster)
133
  with col3:
134
  st.link_button(
135
  f"{top8.iloc[3].title}",
136
  f"{top8.iloc[3].anime_url}",
137
  use_container_width=True,
138
  )
139
- st.image(top8.iloc[3].poster)
140
 
141
  st.divider()
142
 
@@ -148,28 +151,28 @@ def top_animes():
148
  f"{top8.iloc[4].anime_url}",
149
  use_container_width=True,
150
  )
151
- st.image(top8.iloc[4].poster)
152
  with col5:
153
  st.link_button(
154
  f"{top8.iloc[5].title}",
155
  f"{top8.iloc[5].anime_url}",
156
  use_container_width=True,
157
  )
158
- st.image(top8.iloc[5].poster)
159
  with col6:
160
  st.link_button(
161
  f"{top8.iloc[6].title}",
162
  f"{top8.iloc[6].anime_url}",
163
  use_container_width=True,
164
  )
165
- st.image(top8.iloc[6].poster)
166
  with col7:
167
  st.link_button(
168
  f"{top8.iloc[7].title}",
169
  f"{top8.iloc[7].anime_url}",
170
  use_container_width=True,
171
  )
172
- st.image(top8.iloc[7].poster)
173
 
174
 
175
  # Function to display the top 8 animes for user given genre
@@ -183,6 +186,9 @@ def top_animes_genres(genre_select):
183
  border-radius: 15px;
184
  text-align: center;
185
  }
 
 
 
186
  a.st-emotion-cache-1lbx6hs.e16zdaao0:hover {
187
  scale: 1.05;
188
  transition-duration: 0.3s;
@@ -201,28 +207,28 @@ def top_animes_genres(genre_select):
201
  f"{top_8_genre.iloc[0].anime_url}",
202
  use_container_width=True,
203
  )
204
- st.image(top_8_genre.iloc[0].poster)
205
  with col1:
206
  st.link_button(
207
  f"{top_8_genre.iloc[1].title}",
208
  f"{top_8_genre.iloc[1].anime_url}",
209
  use_container_width=True,
210
  )
211
- st.image(top_8_genre.iloc[1].poster)
212
  with col2:
213
  st.link_button(
214
  f"{top_8_genre.iloc[2].title}",
215
  f"{top_8_genre.iloc[2].anime_url}",
216
  use_container_width=True,
217
  )
218
- st.image(top_8_genre.iloc[2].poster)
219
  with col3:
220
  st.link_button(
221
  f"{top_8_genre.iloc[3].title}",
222
  f"{top_8_genre.iloc[3].anime_url}",
223
  use_container_width=True,
224
  )
225
- st.image(top_8_genre.iloc[3].poster)
226
 
227
  st.divider()
228
 
@@ -233,28 +239,28 @@ def top_animes_genres(genre_select):
233
  f"{top_8_genre.iloc[4].anime_url}",
234
  use_container_width=True,
235
  )
236
- st.image(top_8_genre.iloc[4].poster)
237
  with col5:
238
  st.link_button(
239
  f"{top_8_genre.iloc[5].title}",
240
  f"{top_8_genre.iloc[5].anime_url}",
241
  use_container_width=True,
242
  )
243
- st.image(top_8_genre.iloc[5].poster)
244
  with col6:
245
  st.link_button(
246
  f"{top_8_genre.iloc[6].title}",
247
  f"{top_8_genre.iloc[6].anime_url}",
248
  use_container_width=True,
249
  )
250
- st.image(top_8_genre.iloc[6].poster)
251
  with col7:
252
  st.link_button(
253
  f"{top_8_genre.iloc[7].title}",
254
  f"{top_8_genre.iloc[7].anime_url}",
255
  use_container_width=True,
256
  )
257
- st.image(top_8_genre.iloc[7].poster)
258
 
259
 
260
  # Function to display the top 8 animes with user given anime name for all genres
@@ -268,6 +274,9 @@ def top_animes_custom(anime_select):
268
  border-radius: 15px;
269
  text-align: center;
270
  }
 
 
 
271
  a.st-emotion-cache-1lbx6hs.e16zdaao0:hover {
272
  scale: 1.05;
273
  transition-duration: 0.3s;
@@ -289,28 +298,28 @@ def top_animes_custom(anime_select):
289
  f"{recommended_anime_urls[0]}",
290
  use_container_width=True,
291
  )
292
- st.image(recommended_anime_posters[0])
293
  with col1:
294
  st.link_button(
295
  f"{recommended_anime_names[1]}",
296
  f"{recommended_anime_urls[1]}",
297
  use_container_width=True,
298
  )
299
- st.image(recommended_anime_posters[1])
300
  with col2:
301
  st.link_button(
302
  f"{recommended_anime_names[2]}",
303
  f"{recommended_anime_urls[2]}",
304
  use_container_width=True,
305
  )
306
- st.image(recommended_anime_posters[2])
307
  with col3:
308
  st.link_button(
309
  f"{recommended_anime_names[3]}",
310
  f"{recommended_anime_urls[3]}",
311
  use_container_width=True,
312
  )
313
- st.image(recommended_anime_posters[3])
314
 
315
  st.divider()
316
 
@@ -322,28 +331,28 @@ def top_animes_custom(anime_select):
322
  f"{recommended_anime_urls[4]}",
323
  use_container_width=True,
324
  )
325
- st.image(recommended_anime_posters[4])
326
  with col5:
327
  st.link_button(
328
  f"{recommended_anime_names[5]}",
329
  f"{recommended_anime_urls[5]}",
330
  use_container_width=True,
331
  )
332
- st.image(recommended_anime_posters[5])
333
  with col6:
334
  st.link_button(
335
  f"{recommended_anime_names[6]}",
336
  f"{recommended_anime_urls[6]}",
337
  use_container_width=True,
338
  )
339
- st.image(recommended_anime_posters[6])
340
  with col7:
341
  st.link_button(
342
  f"{recommended_anime_names[7]}",
343
  f"{recommended_anime_urls[7]}",
344
  use_container_width=True,
345
  )
346
- st.image(recommended_anime_posters[7])
347
 
348
 
349
  # Function to display the top 8 animes with user given anime name and genre
@@ -357,6 +366,9 @@ def top_animes_custom_genres(anime_select, genre_select):
357
  border-radius: 15px;
358
  text-align: center;
359
  }
 
 
 
360
  a.st-emotion-cache-1lbx6hs.e16zdaao0:hover {
361
  scale: 1.05;
362
  transition-duration: 0.3s;
@@ -378,28 +390,28 @@ def top_animes_custom_genres(anime_select, genre_select):
378
  f"{recommended_anime_urls[0]}",
379
  use_container_width=True,
380
  )
381
- st.image(recommended_anime_posters[0])
382
  with col1:
383
  st.link_button(
384
  f"{recommended_anime_names[1]}",
385
  f"{recommended_anime_urls[1]}",
386
  use_container_width=True,
387
  )
388
- st.image(recommended_anime_posters[1])
389
  with col2:
390
  st.link_button(
391
  f"{recommended_anime_names[2]}",
392
  f"{recommended_anime_urls[2]}",
393
  use_container_width=True,
394
  )
395
- st.image(recommended_anime_posters[2])
396
  with col3:
397
  st.link_button(
398
  f"{recommended_anime_names[3]}",
399
  f"{recommended_anime_urls[3]}",
400
  use_container_width=True,
401
  )
402
- st.image(recommended_anime_posters[3])
403
 
404
  st.divider()
405
 
@@ -411,28 +423,28 @@ def top_animes_custom_genres(anime_select, genre_select):
411
  f"{recommended_anime_urls[4]}",
412
  use_container_width=True,
413
  )
414
- st.image(recommended_anime_posters[4])
415
  with col5:
416
  st.link_button(
417
  f"{recommended_anime_names[5]}",
418
  f"{recommended_anime_urls[5]}",
419
  use_container_width=True,
420
  )
421
- st.image(recommended_anime_posters[5])
422
  with col6:
423
  st.link_button(
424
  f"{recommended_anime_names[6]}",
425
  f"{recommended_anime_urls[6]}",
426
  use_container_width=True,
427
  )
428
- st.image(recommended_anime_posters[6])
429
  with col7:
430
  st.link_button(
431
  f"{recommended_anime_names[7]}",
432
  f"{recommended_anime_urls[7]}",
433
  use_container_width=True,
434
  )
435
- st.image(recommended_anime_posters[7])
436
 
437
 
438
  # Recommender Page
 
97
  border-radius: 15px;
98
  text-align: center;
99
  }
100
+ a.st-emotion-cache-1lbx6hs.e16zdaao0>div>p {
101
+ font-weight: 600;
102
+ }
103
  a.st-emotion-cache-1lbx6hs.e16zdaao0:hover {
104
  scale: 1.05;
105
  transition-duration: 0.3s;
 
118
  f"{top8.iloc[0].anime_url}",
119
  use_container_width=True,
120
  )
121
+ st.image(top8.iloc[0].poster, use_column_width=True)
122
  with col1:
123
  st.link_button(
124
  f"{top8.iloc[1].title}",
125
  f"{top8.iloc[1].anime_url}",
126
  use_container_width=True,
127
  )
128
+ st.image(top8.iloc[1].poster, use_column_width=True)
129
  with col2:
130
  st.link_button(
131
  f"{top8.iloc[2].title}",
132
  f"{top8.iloc[2].anime_url}",
133
  use_container_width=True,
134
  )
135
+ st.image(top8.iloc[2].poster, use_column_width=True)
136
  with col3:
137
  st.link_button(
138
  f"{top8.iloc[3].title}",
139
  f"{top8.iloc[3].anime_url}",
140
  use_container_width=True,
141
  )
142
+ st.image(top8.iloc[3].poster, use_column_width=True)
143
 
144
  st.divider()
145
 
 
151
  f"{top8.iloc[4].anime_url}",
152
  use_container_width=True,
153
  )
154
+ st.image(top8.iloc[4].poster, use_column_width=True)
155
  with col5:
156
  st.link_button(
157
  f"{top8.iloc[5].title}",
158
  f"{top8.iloc[5].anime_url}",
159
  use_container_width=True,
160
  )
161
+ st.image(top8.iloc[5].poster, use_column_width=True)
162
  with col6:
163
  st.link_button(
164
  f"{top8.iloc[6].title}",
165
  f"{top8.iloc[6].anime_url}",
166
  use_container_width=True,
167
  )
168
+ st.image(top8.iloc[6].poster, use_column_width=True)
169
  with col7:
170
  st.link_button(
171
  f"{top8.iloc[7].title}",
172
  f"{top8.iloc[7].anime_url}",
173
  use_container_width=True,
174
  )
175
+ st.image(top8.iloc[7].poster, use_column_width=True)
176
 
177
 
178
  # Function to display the top 8 animes for user given genre
 
186
  border-radius: 15px;
187
  text-align: center;
188
  }
189
+ a.st-emotion-cache-1lbx6hs.e16zdaao0>div>p {
190
+ font-weight: 600;
191
+ }
192
  a.st-emotion-cache-1lbx6hs.e16zdaao0:hover {
193
  scale: 1.05;
194
  transition-duration: 0.3s;
 
207
  f"{top_8_genre.iloc[0].anime_url}",
208
  use_container_width=True,
209
  )
210
+ st.image(top_8_genre.iloc[0].poster, use_column_width=True)
211
  with col1:
212
  st.link_button(
213
  f"{top_8_genre.iloc[1].title}",
214
  f"{top_8_genre.iloc[1].anime_url}",
215
  use_container_width=True,
216
  )
217
+ st.image(top_8_genre.iloc[1].poster, use_column_width=True)
218
  with col2:
219
  st.link_button(
220
  f"{top_8_genre.iloc[2].title}",
221
  f"{top_8_genre.iloc[2].anime_url}",
222
  use_container_width=True,
223
  )
224
+ st.image(top_8_genre.iloc[2].poster, use_column_width=True)
225
  with col3:
226
  st.link_button(
227
  f"{top_8_genre.iloc[3].title}",
228
  f"{top_8_genre.iloc[3].anime_url}",
229
  use_container_width=True,
230
  )
231
+ st.image(top_8_genre.iloc[3].poster, use_column_width=True)
232
 
233
  st.divider()
234
 
 
239
  f"{top_8_genre.iloc[4].anime_url}",
240
  use_container_width=True,
241
  )
242
+ st.image(top_8_genre.iloc[4].poster, use_column_width=True)
243
  with col5:
244
  st.link_button(
245
  f"{top_8_genre.iloc[5].title}",
246
  f"{top_8_genre.iloc[5].anime_url}",
247
  use_container_width=True,
248
  )
249
+ st.image(top_8_genre.iloc[5].poster, use_column_width=True)
250
  with col6:
251
  st.link_button(
252
  f"{top_8_genre.iloc[6].title}",
253
  f"{top_8_genre.iloc[6].anime_url}",
254
  use_container_width=True,
255
  )
256
+ st.image(top_8_genre.iloc[6].poster, use_column_width=True)
257
  with col7:
258
  st.link_button(
259
  f"{top_8_genre.iloc[7].title}",
260
  f"{top_8_genre.iloc[7].anime_url}",
261
  use_container_width=True,
262
  )
263
+ st.image(top_8_genre.iloc[7].poster, use_column_width=True)
264
 
265
 
266
  # Function to display the top 8 animes with user given anime name for all genres
 
274
  border-radius: 15px;
275
  text-align: center;
276
  }
277
+ a.st-emotion-cache-1lbx6hs.e16zdaao0>div>p {
278
+ font-weight: 600;
279
+ }
280
  a.st-emotion-cache-1lbx6hs.e16zdaao0:hover {
281
  scale: 1.05;
282
  transition-duration: 0.3s;
 
298
  f"{recommended_anime_urls[0]}",
299
  use_container_width=True,
300
  )
301
+ st.image(recommended_anime_posters[0], use_column_width=True)
302
  with col1:
303
  st.link_button(
304
  f"{recommended_anime_names[1]}",
305
  f"{recommended_anime_urls[1]}",
306
  use_container_width=True,
307
  )
308
+ st.image(recommended_anime_posters[1], use_column_width=True)
309
  with col2:
310
  st.link_button(
311
  f"{recommended_anime_names[2]}",
312
  f"{recommended_anime_urls[2]}",
313
  use_container_width=True,
314
  )
315
+ st.image(recommended_anime_posters[2], use_column_width=True)
316
  with col3:
317
  st.link_button(
318
  f"{recommended_anime_names[3]}",
319
  f"{recommended_anime_urls[3]}",
320
  use_container_width=True,
321
  )
322
+ st.image(recommended_anime_posters[3], use_column_width=True)
323
 
324
  st.divider()
325
 
 
331
  f"{recommended_anime_urls[4]}",
332
  use_container_width=True,
333
  )
334
+ st.image(recommended_anime_posters[4], use_column_width=True)
335
  with col5:
336
  st.link_button(
337
  f"{recommended_anime_names[5]}",
338
  f"{recommended_anime_urls[5]}",
339
  use_container_width=True,
340
  )
341
+ st.image(recommended_anime_posters[5], use_column_width=True)
342
  with col6:
343
  st.link_button(
344
  f"{recommended_anime_names[6]}",
345
  f"{recommended_anime_urls[6]}",
346
  use_container_width=True,
347
  )
348
+ st.image(recommended_anime_posters[6], use_column_width=True)
349
  with col7:
350
  st.link_button(
351
  f"{recommended_anime_names[7]}",
352
  f"{recommended_anime_urls[7]}",
353
  use_container_width=True,
354
  )
355
+ st.image(recommended_anime_posters[7], use_column_width=True)
356
 
357
 
358
  # Function to display the top 8 animes with user given anime name and genre
 
366
  border-radius: 15px;
367
  text-align: center;
368
  }
369
+ a.st-emotion-cache-1lbx6hs.e16zdaao0>div>p {
370
+ font-weight: 600;
371
+ }
372
  a.st-emotion-cache-1lbx6hs.e16zdaao0:hover {
373
  scale: 1.05;
374
  transition-duration: 0.3s;
 
390
  f"{recommended_anime_urls[0]}",
391
  use_container_width=True,
392
  )
393
+ st.image(recommended_anime_posters[0], use_column_width=True)
394
  with col1:
395
  st.link_button(
396
  f"{recommended_anime_names[1]}",
397
  f"{recommended_anime_urls[1]}",
398
  use_container_width=True,
399
  )
400
+ st.image(recommended_anime_posters[1], use_column_width=True)
401
  with col2:
402
  st.link_button(
403
  f"{recommended_anime_names[2]}",
404
  f"{recommended_anime_urls[2]}",
405
  use_container_width=True,
406
  )
407
+ st.image(recommended_anime_posters[2], use_column_width=True)
408
  with col3:
409
  st.link_button(
410
  f"{recommended_anime_names[3]}",
411
  f"{recommended_anime_urls[3]}",
412
  use_container_width=True,
413
  )
414
+ st.image(recommended_anime_posters[3], use_column_width=True)
415
 
416
  st.divider()
417
 
 
423
  f"{recommended_anime_urls[4]}",
424
  use_container_width=True,
425
  )
426
+ st.image(recommended_anime_posters[4], use_column_width=True)
427
  with col5:
428
  st.link_button(
429
  f"{recommended_anime_names[5]}",
430
  f"{recommended_anime_urls[5]}",
431
  use_container_width=True,
432
  )
433
+ st.image(recommended_anime_posters[5], use_column_width=True)
434
  with col6:
435
  st.link_button(
436
  f"{recommended_anime_names[6]}",
437
  f"{recommended_anime_urls[6]}",
438
  use_container_width=True,
439
  )
440
+ st.image(recommended_anime_posters[6], use_column_width=True)
441
  with col7:
442
  st.link_button(
443
  f"{recommended_anime_names[7]}",
444
  f"{recommended_anime_urls[7]}",
445
  use_container_width=True,
446
  )
447
+ st.image(recommended_anime_posters[7], use_column_width=True)
448
 
449
 
450
  # Recommender Page