Spaces:
Configuration error
Configuration error
|
Download README.md from danielle2035/intel-classifier-app-danielle: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/danielle2035/intel-classifier-app-danielle/resolve/main/README.md
- Command line
-
hf download hf://spaces/danielle2035/intel-classifier-app-danielle/README.md
-
curl -L -o README.md https://huggingface.co/spaces/danielle2035/intel-classifier-app-danielle/resolve/main/README.md
1.03 kB
Minimal Hugging Face Space for Intel Image Classifier
This folder contains a minimal Hugging Face Space app using a custom index.html frontend and a Python backend.
Files
app.py— FastAPI backend for prediction and frontend deliveryindex.html— frontend UI for uploading images and selecting the modelrequirements.txt— dependenciesmodels/— place your trained models here
Model files required
Place your trained models in hf_space/models/:
pytorch_model.pthmodel_best.keras
Deploying on Hugging Face Spaces
- Create a new Space on Hugging Face
- Select
PythonSDK - Push the contents of this
hf_space/directory to the new Space repository
The Space will run app.py automatically and serve index.html as the frontend.
Docker support
A Dockerfile is included so you can also build and run the app locally in a container.
Local testing
From hf_space/:
pip install -r requirements.txt
python app.py
Then open:
http://localhost:7860