Spaces:
Sleeping
Sleeping
|
Download README_SPACE.md from alphamike/GraphAttributeLearning: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/spaces/alphamike/GraphAttributeLearning/resolve/main/README_SPACE.md
- Command line
-
hf download hf://spaces/alphamike/GraphAttributeLearning/README_SPACE.md
-
curl -L -o README_SPACE.md https://huggingface.co/spaces/alphamike/GraphAttributeLearning/resolve/main/README_SPACE.md
1.24 kB
A newer version of the Gradio SDK is available: 6.31.0
Hugging Face Space Setup
1. Prepare Repository
Push this project (including app.py, requirements-space.txt, and checkpoints) to a Git repository that you will connect to your Space.
Recommended checkpoint locations:
- Baseline:
outputs/smoke_baseline/best.pt - GNN:
outputs/smoke_gnn/best.pt
2. Create a New Space
- On Hugging Face, create a new Space.
- Select Gradio as the SDK.
- Point the Space to this repository (or upload the files manually).
3. Configure Runtime
- Hardware: start with CPU; upgrade to GPU if needed.
- Python dependencies:
- Set the Space to use
requirements-space.txtas the dependency file.
- Set the Space to use
4. Local Test Before Pushing
Create and activate a clean virtualenv, then run:
pip install -r requirements-space.txt
python app.py
Open the printed URL in your browser, upload a chair image, and verify that:
- Baseline and GNN models both run.
- Switching model type updates which checkpoint is used.
5. Expected Behavior in the Space
- The app starts from
app.py. - Default checkpoint paths:
- Baseline:
outputs/smoke_baseline/best.pt - GNN:
outputs/smoke_gnn/best.pt
- Baseline:
- You can override checkpoint paths via the text box in the UI.