Ars135 commited on
Commit
7c1b69a
·
verified ·
1 Parent(s): 86e6877

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +34 -8
README.md CHANGED
@@ -1,10 +1,36 @@
1
  ---
2
- title: Emotion Detection
3
- emoji: 😊
4
- colorFrom: indigo
5
- colorTo: purple
6
- sdk: gradio
7
- sdk_version: 5.49.1
8
- app_file: app.py
9
  pinned: false
10
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: "Emotion Detection"
3
+ emoji: "😄"
4
+ colorFrom: "blue"
5
+ colorTo: "purple"
6
+ sdk: "gradio"
7
+ sdk_version: "5"
8
+ app_file: "app.py"
9
  pinned: false
10
+ ---
11
+
12
+ # Emotion Detection (PyTorch)
13
+
14
+ A robust and minimal facial emotion classification application built for Hugging Face Spaces using **PyTorch** and the **`transformers`** library.
15
+
16
+ This Space is specifically designed to run on a standard CPU or GPU environment within HF Spaces, using the **`nateraw/fer-2013`** model.
17
+
18
+ ## ✨ Key Features
19
+
20
+ * **Model:** Uses `AutoModelForImageClassification` and `AutoImageProcessor` from the `transformers` library.
21
+ * **Framework:** Pure PyTorch implementation (TensorFlow/Keras-free).
22
+ * **Interface:** Built with **Gradio SDK v5**.
23
+ * **Environment:** Runs on Python 3.10.
24
+
25
+ ## 🚀 Deployment Instructions
26
+
27
+ To deploy this application to a new Hugging Face Space:
28
+
29
+ 1. Create a new Space on Hugging Face.
30
+ 2. Select **Gradio** as the Space SDK.
31
+ 3. Upload the four files (`app.py`, `requirements.txt`, `runtime.txt`, and `README.md`) to the root of the repository.
32
+ 4. Hugging Face Spaces will automatically build and launch the application using the specified dependencies and Python version.
33
+
34
+ ## ⚠️ Requirements Philosophy
35
+
36
+ Dependencies are tightly version-pinned in `requirements.txt` to ensure stability and compatibility, especially between PyTorch and the `transformers` library, which is critical for successful builds on Hugging Face infrastructure.