Spaces:
Sleeping
A newer version of the Gradio SDK is available: 6.10.0
π Quick Deployment Instructions
β Repository Status
SimpleHF is now synced with Hugging Face Space!
Repository: https://huggingface.co/spaces/gladguy/SimpleProject
Branch: main
Latest commit: 119408d - "Add AnatomyBot - MBBS Anatomy Tutor with AI-powered learning features"
π€ Push to Hugging Face
Run this command to deploy:
git push origin main
If you need authentication, use your Hugging Face credentials:
- Username:
gladguy(or your username) - Password: Your Hugging Face access token (get from https://huggingface.co/settings/tokens)
π Configure API Keys (CRITICAL!)
After pushing, you MUST add these secrets in your Space settings:
- Go to: https://huggingface.co/spaces/gladguy/SimpleProject/settings
- Scroll to Repository secrets
- Add:
- Name:
SERPAPI_KEYβ Value: Your SERPAPI key - Name:
HYPERBOLIC_API_KEYβ Value: Your Hyperbolic key
- Name:
β¨ What's Included
β
app.py - Main AnatomyBot application with:
- Anatomy-only question validation
- Google Images search via SERPAPI
- AI content generation via Hyperbolic (Llama 3.3 70B)
- Interactive Gradio interface
β
requirements.txt - All Python dependencies
β
README.md - Space description with Hugging Face configuration
β
setup.py - Helper script to configure API keys locally
β
.gitignore - Prevents committing .env and other sensitive files
π― After Deployment
Your Space will be live at: https://huggingface.co/spaces/gladguy/SimpleProject
Test with these questions:
- "Show me the Circle of Willis"
- "Brachial plexus anatomy"
- "Carpal bones arrangement"
π Local Testing (Before Pushing)
To test locally first:
Configure your API keys:
python setup.py # OR manually edit .env fileRun the app:
python app.pyOpen http://localhost:7860 in your browser
π§ Troubleshooting
Issue: Authentication failed when pushing
# Use access token in URL
git remote set-url origin https://gladguy:YOUR_TOKEN@huggingface.co/spaces/gladguy/SimpleProject
git push origin main
Issue: Space shows error after deployment
- Check that both API keys are set in Space secrets
- Check the build logs in the Space
π Files Ready to Deploy
SimpleHF/
βββ .gitignore β
Committed
βββ README.md β
Committed (with HF config)
βββ app.py β
Committed
βββ requirements.txt β
Committed
βββ setup.py β
Committed
βββ .env β Not committed (contains secrets)
π Ready to Deploy!
Everything is committed and ready. Just run:
git push origin main
Then configure your API keys in the Space settings!