Spaces:
Paused
Paused
A newer version of the Gradio SDK is available: 6.14.0
metadata
title: AI Vidya Daily Report Agent
emoji: ๐
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 5.9.1
app_file: app.py
pinned: false
AI Vidya โ Daily Report Evaluation Agent
Reads #ai-vidya on Slack, checks who submitted their EOD report, evaluates quality with Claude AI, and posts results to #intern-updates.
Setup (5 minutes)
1. Create the HuggingFace Space
- Go to huggingface.co โ New Space
- SDK: Gradio, Visibility: Private
- Upload
app.py,requirements.txt,README.md
2. Add Secrets
In your Space โ Settings โ Variables and Secrets:
| Secret name | Value |
|---|---|
SLACK_BOT_TOKEN |
xoxb-your-bot-token |
ANTHROPIC_API_KEY |
sk-ant-your-key |
3. Create the Slack Bot
- Go to api.slack.com/apps โ Create New App
- OAuth & Permissions โ Bot Token Scopes, add:
channels:historyโ read #ai-vidya messageschannels:readโ find channel IDschat:writeโ post to #intern-updatesusers:readโ look up intern names
- Install to workspace โ copy Bot User OAuth Token
- Invite bot to both channels:
/invite @your-bot-namein #ai-vidya/invite @your-bot-namein #intern-updates
4. Get Slack User IDs for Interns
In Slack: click any intern's profile โ โฎ (more) โ Copy member ID
It looks like: U06T83LP86P
Paste them into the intern registry JSON in the UI.
5. Schedule Daily at 11 PM IST
GitHub Actions (free, recommended):
Create .github/workflows/daily_check.yml:
name: Daily Report Check
on:
schedule:
- cron: '30 17 * * 1-5' # 11:00 PM IST (MonโFri) = 17:30 UTC
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger HF Space
run: |
curl -X POST "${{ secrets.HF_SPACE_URL }}/run/predict" \
-H "Content-Type: application/json" \
-d '{"data": [""]}'
Add HF_SPACE_URL as a GitHub secret โ format: https://your-username-your-space-name.hf.space
What it does
- Reads all messages in #ai-vidya posted today
- Checks each registered intern โ submitted or missed
- Evaluates submitted reports with Claude:
- ๐ข Good โ specific technical content, real blocker, shows thinking
- ๐ก Weak โ vague, missing blocker, just a status update
- ๐ด Invalid โ one liner, link only, "done", "working on it"
- Posts a full summary to #intern-updates
- @mentions each intern who missed with a warning message