Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Model Card
|
| 2 |
+
|
| 3 |
+
### Model Description
|
| 4 |
+
This model is a movie recommender system trained on IMDB movie data. It provides movie recommendations based on cosine similarity of text features extracted from movie titles and other attributes.
|
| 5 |
+
|
| 6 |
+
### Intended Use
|
| 7 |
+
- **Recommendation:** The model is designed to recommend movies based on a given movie title. It provides a list of similar movies from the IMDB dataset.
|
| 8 |
+
|
| 9 |
+
### How to Use
|
| 10 |
+
1. **Input:** Provide a movie title as input.
|
| 11 |
+
2. **Output:** The model returns a list of recommended movies based on similarity.
|
| 12 |
+
|
| 13 |
+
### Model Details
|
| 14 |
+
- **Training Data:** The model was trained on a dataset of IMDB movies including movie titles, genres, and other attributes.
|
| 15 |
+
- **Features:** The model uses text features extracted from movie titles and additional metadata such as genres and certificates.
|
| 16 |
+
|
| 17 |
+
### Example
|
| 18 |
+
To get recommendations, you can use the following code snippet:
|
| 19 |
+
|
| 20 |
+
```python
|
| 21 |
+
import requests
|
| 22 |
+
|
| 23 |
+
model_name = 'your_model_name'
|
| 24 |
+
api_url = f'https://api-inference.huggingface.co/models/{model_name}'
|
| 25 |
+
headers = {
|
| 26 |
+
'Authorization': f'Bearer your_token'
|
| 27 |
+
}
|
| 28 |
+
data = {
|
| 29 |
+
'inputs': 'The Godfather'
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
response = requests.post(api_url, headers=headers, json=data)
|
| 33 |
+
print(response.json())
|