lama9876 commited on
Commit
0c4b46f
·
verified ·
1 Parent(s): 28c138e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -3
README.md CHANGED
@@ -1,3 +1,31 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+ # Xception Model for Emotion Recognition
5
+
6
+ This model is based on the **Xception** architecture and trained on the **FER2013** dataset and **CK+** for **emotion recognition**.
7
+
8
+ ## Model Details
9
+ - **Architecture**: Xception
10
+ - **Input Shape**: (48, 48, 1)
11
+ - **Output Shape**: 7 classes (emotion categories)
12
+ - **Pretrained on**: FER2013 dataset (Augmented)
13
+ - **File Type**: `.h5`
14
+
15
+ ## How to Use the Model
16
+
17
+ ### Using the Hugging Face Inference API:
18
+ You can use this model directly through the **Hugging Face Inference API**. Here's an example of how to use it:
19
+
20
+ ```python
21
+ from transformers import pipeline
22
+
23
+ # Replace with the model's name on Hugging Face
24
+ model_name = "lama9876/Xception-Model"
25
+
26
+ # Load the model using the pipeline
27
+ model = pipeline('image-classification', model=model_name)
28
+
29
+ # Make a prediction (replace with the path to your image)
30
+ result = model("path_to_image.jpg")
31
+ print(result)