WatermarkLeaderboard / DEPLOYMENT_GUIDE.md
kirudang's picture
Copy files from original watermark leaderboard
40b3335
# πŸš€ Deployment Guide for Hugging Face Spaces
## Quick Fix for Your Existing Space
Your Hugging Face Space at https://huggingface.co/spaces/kirudang/watermark-leaderboard has been updated with the following fixes:
### βœ… Fixed Issues
1. **Flexible Submission Validation**
- Now accepts any combination of attack types
- Submit only Attack-free, only Watermark Removal, only Stealing Attack, or any combination
- Clear validation messages guide users
2. **Complete Pending Submissions Table**
- Shows ALL fields: ID, Name, Model, Paper Link, Attack-free metrics, Watermark Removal metrics, Stealing Attack metrics, Submitted At
- Administrators can see complete submission details for proper review
3. **Enhanced User Experience**
- Clear submission requirements displayed in the form
- Better error messages
- Paper link field added
## πŸ“ Files to Update in Your Hugging Face Space
Upload these updated files to your Space:
1. **app.py** - Main application with all fixes
2. **requirements.txt** - Updated dependencies
3. **README.md** - Updated documentation
4. **leaderboard.json** - Latest data (if needed)
## πŸ”„ How to Deploy
### Option 1: Git Push (Recommended)
```bash
# In your watermark-leaderboard directory
git add .
git commit -m "Fix submission validation and pending approval display"
git push origin main
```
### Option 2: Manual Upload
1. Go to your Space: https://huggingface.co/spaces/kirudang/watermark-leaderboard
2. Click "Files and versions" tab
3. Upload the updated files:
- `app.py`
- `requirements.txt`
- `README.md`
- `leaderboard.json` (if you want to update data)
## 🎯 What's Fixed
### Before (Issues):
- ❌ Could only submit Attack-free data
- ❌ Pending submissions showed limited fields
- ❌ Confusing validation messages
### After (Fixed):
- βœ… Can submit any combination: Attack-free, Watermark Removal, Stealing Attack
- βœ… Pending submissions show ALL fields for complete review
- βœ… Clear submission requirements and validation
## πŸ” Testing the Fixes
After deployment, test these scenarios:
1. **Submit only Stealing Attack data** (no Attack-free)
2. **Submit only Watermark Removal data** (no Attack-free)
3. **Submit combination of all three types**
4. **Check pending submissions table shows all fields**
## πŸ› οΈ Admin Controls
- **Admin Password**: `admin123` (you can change this in app.py)
- **Pending Submissions**: Shows complete details for review
- **Approval Process**: Approve/reject with full visibility
Your Space will automatically rebuild when you push the changes!