partySim / README.md
dpang's picture
Upload 2 files
1492d7f verified

A newer version of the Gradio SDK is available: 5.43.1

Upgrade
metadata
title: Party Planner - Guest Table Arranger
emoji: πŸŽ‰
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.34.2
app_file: app.py
pinned: false

πŸŽ‰ Party Planner - Guest Table Arranger

A smart web application that helps you organize your guest list into optimal table arrangements for networking events and parties. Built with Gradio and deployed on Hugging Face Spaces.

✨ Features

  • πŸ“ Easy CSV Upload: Simply paste your CSV content or upload a file
  • 🧠 Smart Table Arrangement: AI-powered algorithm that categorizes guests by industry/role
  • 🎯 Optimal Distribution: Automatically creates tables of 10 with balanced industry mix
  • πŸ“Š Visual Results: Clear, formatted output showing table assignments
  • 🎨 Modern Interface: Beautiful, responsive Gradio interface
  • πŸ“± Mobile Friendly: Works perfectly on all devices

πŸš€ How to Use

  1. Prepare Your CSV: Create a CSV file with exactly 2 columns:

    • First column: Guest names
    • Second column: Job titles, roles, or descriptions
  2. Upload Your Data:

    • Paste your CSV content directly into the text box, OR
    • Upload your CSV file using the file upload button
  3. Arrange Tables: Click the "🎯 Arrange Tables" button to see the smart arrangement

  4. View Results: See your guests organized into optimal table seating with industry-balanced distribution

πŸ“„ CSV Format Example

name,message
John Smith,Software Engineer at TechCorp
Sarah Johnson,Marketing Director at Creative Agency
Michael Brown,CEO of StartupXYZ
Emily Davis,Data Scientist at AI Labs
David Wilson,Product Manager at Innovation Inc

🧠 Smart Categorization

The app automatically categorizes guests based on their job descriptions:

  • Tech: engineer, developer, programmer, software, tech, data, AI, ML, scientist
  • Business: manager, director, CEO, founder, executive, strategy, operations, consultant
  • Creative: designer, creative, marketing, content, writer, artist, media
  • Sales: sales, account, client, business development, partnership
  • Finance: finance, accounting, investment, banking, analyst, CFO
  • Other: any roles not matching the above categories

🎯 Table Arrangement Algorithm

  1. Categorizes guests by industry/role type
  2. Distributes major categories evenly across tables
  3. Balances table sizes (maximum 10 guests per table)
  4. Creates unlimited tables as needed
  5. Ensures diverse networking opportunities

πŸ“Š Sample Output

πŸŽ‰ Successfully processed 25 guests!

πŸ“Š Created 3 table(s) with smart distribution:

🍽️ **Table 1** (9 guests):
  1. **John Smith** - Software Engineer at TechCorp
  2. **Sarah Johnson** - Marketing Director at Creative Agency
  3. **Michael Brown** - CEO of StartupXYZ
  ...

🍽️ **Table 2** (8 guests):
  1. **Emily Davis** - Data Scientist at AI Labs
  2. **David Wilson** - Product Manager at Innovation Inc
  ...

🍽️ **Table 3** (8 guests):
  1. **Lisa Chen** - UX Designer at Design Studio
  ...

πŸ“ˆ **Table Statistics:**
  Table 1: 9 guests
  Table 2: 8 guests
  Table 3: 8 guests

πŸ› οΈ Technical Details

  • Framework: Gradio (Python)
  • Algorithm: Smart categorization and distribution
  • Deployment: Hugging Face Spaces
  • Dependencies: gradio>=4.0.0

🎨 Features

  • Drag & Drop: Easy file upload
  • Real-time Processing: Instant table arrangement
  • Error Handling: Clear error messages for invalid formats
  • Sample Data: Built-in sample CSV for testing
  • Responsive Design: Works on desktop and mobile

πŸ”§ Local Development

To run this locally:

pip install gradio
python app.py

πŸ“ License

This project is for educational and personal use purposes.


Made with ❀️ for better networking events!