File size: 1,852 Bytes
c0975bf
d134b93
c0975bf
 
 
 
 
 
d134b93
c0975bf
 
 
 
863f64e
c0975bf
863f64e
c0975bf
863f64e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
title: Netflix
emoji: πŸš€
colorFrom: red
colorTo: red
sdk: docker
app_port: 8501
tags:
- streamlit
pinned: false
short_description: Streamlit template space
---

# Netflix Content Explorer

A Streamlit application that allows users to explore Netflix movies and TV shows with advanced filtering capabilities and AI-powered insights.

## Features

- 🎬 Browse through Netflix movies and TV shows
- πŸ” Advanced filtering by:
  - Content type (Movies/TV Shows)
  - Ratings
  - Genres
  - Release years
  - Movie duration
- πŸ€– AI-powered insights using Together AI
- πŸ“Š Interactive data visualization
- πŸ’‘ Smart content recommendations

## Setup

1. Clone this repository
2. Install dependencies:
   ```bash
   pip install -r requirements.txt
   ```

3. Configure the following secrets in your Hugging Face Space or environment variables:
   - `NOCODB_API_TOKEN`: Your NocoDB API token
   - `NOCODB_ENDPOINT_PATH`: Your NocoDB endpoint path
   - `TOGETHER_API_KEY`: Your Together AI API key

4. Run the application:
   ```bash
   streamlit run app.py
   ```

## NocoDB Setup

Ensure your NocoDB database has a table with the following columns:
- `title`: Title of the movie/show
- `type`: Type of content (Movie/TV Show)
- `director`: Director name(s)
- `cast`: Cast members
- `release_year`: Year of release
- `rating`: Content rating
- `duration`: Duration (e.g., "90 min" for movies, "2 Seasons" for shows)
- `listed_in`: Genres (comma-separated)
- `description`: Content description

## Usage

1. Use the sidebar filters to narrow down content based on your preferences
2. Explore detailed information about each title in the main content area
3. Ask questions to the AI assistant about trends, recommendations, and insights
4. View overall statistics in the footer

## Contributing

Feel free to submit issues and enhancement requests!