Spaces:
Sleeping
Sleeping
File size: 927 Bytes
e87fd2c 35eb91f e87fd2c 8f4830c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# === Hugging Face Space Configuration ===
# We’re using a custom container because this is a GPU FastAPI backend.
sdk: "docker"
#app_file: "app/main.py"
# (Optional metadata)
title: "WorkWise Backend GPU"
emoji: "⚙️"
colorFrom: "blue"
colorTo: "indigo"
app_port: 7860 # HF routes traffic through port 7860 inside the container
pinned: false
# Hardware (HF will spin up a GPU runtime)
hardware: "gpu"
# Docker build context
# Hugging Face will automatically build your Dockerfile at repo root
# (Make sure you have Dockerfile and requirements.txt)
---
# Optional environment variables (you can also set these from HF UI)
env:
- name: HF_HOME
value: /data/huggingface
- name: HF_HUB_DISABLE_TELEMETRY
value: "1"
- name: CUDA_VISIBLE_DEVICES
value: "0"
# If your app uses secrets (API keys, vector DB URL), define them via
# “Settings → Repository secrets” in Hugging Face UI (not here) |