Instructions to use 23f1000805/face-expression-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Py-Feat
How to use 23f1000805/face-expression-v3 with Py-Feat:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download app.py from 23f1000805/face-expression-v3: direct link, hf CLI and curl.
- Browser
- Download file 604 Bytes
-
https://huggingface.co/23f1000805/face-expression-v3/resolve/main/app.py
- Command line
-
hf download hf://23f1000805/face-expression-v3/app.py
-
curl -L -o app.py https://huggingface.co/23f1000805/face-expression-v3/resolve/main/app.py
604 Bytes
| import pandas as pd | |
| import gradio as gr | |
| from inference import ExpressionMatcher | |
| MODEL = ExpressionMatcher("23f1000805/face-expression-v3") | |
| def run(path): | |
| df = pd.read_csv(path) | |
| return MODEL.predict_table(df) | |
| demo = gr.Interface( | |
| run, | |
| gr.File(label="features.csv with 10 photos per person", type="filepath"), | |
| gr.Dataframe(label="matched expressions"), | |
| title="Face expression matcher", | |
| description="Upload the Py-Feat feature csv of one or more people (10 photos each, with a person_id column if there are several people).", | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |