Spaces:
Runtime error
Runtime error
File size: 1,440 Bytes
31210ba 79c3d58 31210ba 79c3d58 31210ba |
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 34 |
---
title: GeoMate V3.0
emoji: π’
colorFrom: pink
colorTo: green
sdk: docker
pinned: false
---
# GeoMate V3 β FastAPI + React (Docker) β Deployable on Hugging Face Spaces
## Quick overview
This repository contains a deployable FastAPI backend and React frontend for GeoMate V3 (geotechnical assistant). The Dockerfile builds the React frontend and runs the FastAPI server.
## Secrets (set in HF Space Settings β Secrets)
- `GROQ_API_KEY` β Groq API key (optional, for RAG)
- `SERVICE_ACCOUNT` β Earth Engine service account email (optional)
- `EARTH_ENGINE_KEY` β Earth Engine service account JSON (paste entire JSON)
If secrets are not present, the app runs with reduced functionality and clear messages.
## Deploy to Hugging Face (Docker)
1. Create a new Space on Hugging Face: https://huggingface.co/new-space
- Choose **Docker** as the SDK.
2. Upload or push this repository to the Space.
3. In Space settings β Secrets, add `GROQ_API_KEY`, `SERVICE_ACCOUNT`, `EARTH_ENGINE_KEY` (if using EE).
4. Wait for the build β HF will run the Dockerfile and start the app.
5. The app will be available at `https://<your-space>.hf.space`.
## Run locally with Docker
```bash
docker build -t geomate-v3 .
docker run -p 7860:7860 -e GROQ_API_KEY="..." -e SERVICE_ACCOUNT="..." -e EARTH_ENGINE_KEY="$(cat key.json)" geomate-v3
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|