Spaces:
Runtime error
Runtime error
|
Download README.md from fugthchat/Hannah-Pilot-Interface: direct link, hf CLI and curl.
- Browser
- Download file 1.41 kB
-
https://huggingface.co/spaces/fugthchat/Hannah-Pilot-Interface/resolve/main/README.md
- Command line
-
hf download hf://spaces/fugthchat/Hannah-Pilot-Interface/README.md
-
curl -L -o README.md https://huggingface.co/spaces/fugthchat/Hannah-Pilot-Interface/resolve/main/README.md
1.41 kB
metadata
title: Hannah-Pilot-Interface
duplicate_from: null
sdk: docker
app_port: 7860
Hannah Pilot Interface (Docker Space)
This HuggingFace Space serves a FastAPI backend for the Hannah web UI.
β Endpoints
GET /api/modelsβ lists available.ggufmodels in the repoGET /api/statusβ lightweight health/status (RAM + CPU)POST /api/gen_titleβ generates a short chat titlePOST /api/chatβ streams NDJSON responses (application/x-ndjson)
Frontend Setup
In your HTML frontend, set:
const API_BASE = "https://fugthchat-hannah-pilot-interface.hf.space";
Your frontend should call:
POST ${API_BASE}/api/chatGET ${API_BASE}/api/modelsGET ${API_BASE}/api/status
Models
Upload your model files into the Space repo root:
qwen2.5-0.5b-instruct-q2_k.gguf(Light)qwen2.5-0.5b-instruct-q4_k_m.gguf(Heavy)
The backend auto-detects all *.gguf files.
Avoiding Build Loops
This Space uses:
- Docker listening on
0.0.0.0:7860 app_port: 7860in the README header
If your Space keeps restarting:
- Confirm the app listens on port
7860. - Confirm
CMDrunsuvicorn app:app --host 0.0.0.0 --port 7860. - Check the Space logs for dependency install failures.
Notes
- This is CPU-friendly config (
n_threads=2) for HuggingFace free tier. - Response streaming is NDJSON (one JSON per line:
{ "text": "..." }).