Spaces:
Sleeping
Sleeping
metadata
title: Manifesto Explainer API
emoji: 🗳️
colorFrom: indigo
colorTo: purple
sdk: docker
pinned: false
app_port: 8080
Manifesto Explainer Backend
This is the FastAPI backend for the Manifesto Explainer platform. It provides endpoints for PDF parsing, LLM summarization, and political analysis.
Deployment on Hugging Face Spaces
- Create a new Space on Hugging Face.
- Select Docker as the SDK.
- Upload all files from this repository (or push via Git).
- Go to Settings > Variables and secrets.
- Add your
GROQ_API_KEYandGEMINI_API_KEYas Secrets. - The app will automatically build and run on port 8080.
Integration with Frontend
If you are hosting the frontend on Cloudflare Pages:
- Copy the URL of your Hugging Face Space (e.g.,
https://samarth-manifesto-explainer.hf.space). - In your
index.htmlon Cloudflare, add this script tag beforescript.js:<script>window.BACKEND_URL = "https://your-space-name.hf.space";</script>