textilindo-ai-assistant / QUICK_DEPLOY.md
harismlnaslm's picture
Initial commit: Textilindo AI Assistant for HF Spaces
298d6c1

πŸš€ Quick Deploy to Hugging Face Spaces

Prerequisites

  • Python 3.8+
  • Git installed
  • Hugging Face account

Step 1: Setup

# Install requirements
pip install -r requirements.txt

# Run setup script
python setup_hf_space.py

Step 2: Deploy

# Option A: Automated deployment
python deploy_final.py

# Option B: Manual deployment
huggingface-cli login
huggingface-cli repo create textilindo-ai-assistant --type space --sdk gradio

Step 3: Manual Upload (if automated fails)

  1. Go to https://huggingface.co/spaces/[your-username]/textilindo-ai-assistant
  2. Upload these files:
    • app.py
    • requirements.txt
    • README.md
    • configs/system_prompt.md
    • data/textilindo_training_data.jsonl

Step 4: Test

  • Wait for build to complete (2-5 minutes)
  • Test your application
  • Share the link!

Files Structure

textilindo-ai-assistant/
β”œβ”€β”€ app.py                    # Main Gradio application
β”œβ”€β”€ requirements.txt          # Dependencies
β”œβ”€β”€ README.md                 # Space configuration
β”œβ”€β”€ configs/
β”‚   └── system_prompt.md     # System prompt
└── data/
    └── textilindo_training_data.jsonl

Troubleshooting

  • Build fails: Check requirements.txt versions
  • App doesn't start: Check app.py for errors
  • Data not loading: Verify data files are uploaded
  • Memory issues: Use smaller dataset or optimize code

Support

Check the DEPLOYMENT_GUIDE.md for detailed instructions.