Spaces:
Runtime error
Runtime error
metadata
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)
- Create a new Space on Hugging Face: https://huggingface.co/new-space
- Choose Docker as the SDK.
- Upload or push this repository to the Space.
- In Space settings β Secrets, add
GROQ_API_KEY,SERVICE_ACCOUNT,EARTH_ENGINE_KEY(if using EE). - Wait for the build β HF will run the Dockerfile and start the app.
- The app will be available at
https://<your-space>.hf.space.
Run locally with Docker
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