https://github.com/dmickelson/huggingfaceinferenceapiproject
This project provides a simple setup for testing HuggingFace Inference APIs from local Python applications. It includes configuration management and a client for making inference requests to HuggingFace models.
https://github.com/dmickelson/huggingfaceinferenceapiproject
colab-notebook huggingface jypyternotebook python
Last synced: 1 day ago
JSON representation
This project provides a simple setup for testing HuggingFace Inference APIs from local Python applications. It includes configuration management and a client for making inference requests to HuggingFace models.
- Host: GitHub
- URL: https://github.com/dmickelson/huggingfaceinferenceapiproject
- Owner: dmickelson
- Created: 2024-08-24T18:24:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-26T18:47:24.000Z (about 1 year ago)
- Last Synced: 2025-06-13T02:02:54.163Z (4 months ago)
- Topics: colab-notebook, huggingface, jypyternotebook, python
- Language: Jupyter Notebook
- Homepage:
- Size: 13.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HuggingFace Inference API Testing
This project provides a simple setup for testing HuggingFace Inference APIs from local Python applications.
It includes configuration management and a client for making inference requests to HuggingFace models.## Features
- Configuration management using Pydantic BaseSettings
- Hugging Face Inference Client setup
- Example usage of the Inference API## Setup and Usage
Create a `.env` file in the project root and add your HuggingFace API token:
`HF_API_TESTING=your_api_token_here`The project consists of two main files:
### `config.py`
This file sets up the configuration using Pydantic BaseSettings
### `inference_client.py`
This file sets up the HuggingFace Inference Client and provides a function to call the language model
## Example Projects
[VITON-HD Repository](https://github.com/shadow2496/VITON-HD)
[IDM-VTON on HuggingFace](https://huggingface.co/yisol/IDM-VTON)
[Gradio Test UI](https://huggingface.co/spaces/yisol/IDM-VTON)