cojournalist-data / README.md
Tom
Deploy Phi-3-mini with ZeroGPU and 50 req/day limit
c7dcc92
|
raw
history blame
1.87 kB
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_TOKEN with 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