Spaces:
Sleeping
Sleeping
metadata
title: Cojournalist Data
emoji: ποΈ
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: false
short_description: Swiss Parliamentary Data Chatbot with Phi-3-mini
ποΈ CoJournalist Data
A Swiss Parliamentary Data Chatbot powered by Phi-3-mini and the OpenParlData MCP server.
Features
- π€ Phi-3-mini-4k-instruct - Efficient 3.8B parameter model running on ZeroGPU
- π Multilingual - Support for English, German, French, and Italian
- π οΈ Tool Calling - Intelligent query routing to parliamentary data APIs
- π Rate Limited - 50 requests per day per user for cost control
- β‘ ZeroGPU - FREE GPU inference for PRO users
Space Settings Required
IMPORTANT: To run this Space, you need to configure the following in your HuggingFace Space settings:
1. Hardware Selection
- Go to Settings β Hardware
- Select ZeroGPU (FREE for PRO users)
- Save changes
2. Environment Variables (Optional)
If you want to use the OpenParlData API when it's available:
- Add
HF_TOKENwith your HuggingFace token
Usage
Simply ask questions about Swiss parliamentary data in natural language:
- "Who are the parliamentarians from Zurich?"
- "Show me recent votes about climate policy"
- "What motions were submitted about healthcare in 2024?"
Architecture
- Model: microsoft/Phi-3-mini-4k-instruct (3.8B params)
- GPU: ZeroGPU (H200) with dynamic allocation
- Framework: Gradio + Transformers + PyTorch
- MCP Integration: OpenParlData server for parliamentary data
Cost
- HF PRO: $9/month (required for ZeroGPU)
- Inference: FREE (included with PRO subscription)
- Total: $9/month for unlimited usage within ZeroGPU quotas
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference