Chucaflu11/uci-predict
0
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Deploy to Hugging Face Spaces
Quick steps to deploy this repository as a Gradio Space:
- Make sure
best_cnn_only_model.h5,best_rnn_only_model.h5andfeature_names.jsonare present in the repo root. If models are large, consider hosting them on the Hugging Face Hub and downloading at runtime or using Git LFS. - Ensure
requirements.txtincludesgradio(this repo now contains it). - Create a new Space on Hugging Face: choose "Gradio" as the SDK and "Public" or "Private" depending on your needs.
- Push this repository to the Space's Git remote. Example (after creating the Space):
git init git add . git commit -m "Initial Space" git remote add origin https://huggingface.co/spaces/<your-username>/<your-space-name> git push origin main
- The Space will detect
app.py(Gradio) and install packages fromrequirements.txt. The app will be available after build completes.
Notes and tips:
- If your model files are > 50 MB, either enable Git LFS for the Space or upload models to the Hugging Face Hub and change
app.pyto download them at startup. - If you prefer smaller install footprint, use
tensorflow-cpuinrequirements.txt. - For debugging, check the Space logs on the web UI (Build logs / Server logs).
