Spaces:
Runtime error
Runtime error
Commit History
-
Update README.md (#2)
Verified signature- Update README.md (1dcfc6f2139f56e823c24a5119a74968a8539e69)a907323
-
Fix Gradio version compatibility - remove theme parameter
official.ghost.logicRemoved theme=gr.themes.Soft() parameter from gr.Blocks() calls as older Gradio versions don't support it.ddf162a -
Phase 1: Improve session generation continuity
official.ghost.logicEnhanced auto-generate next session with: ✨ Increase context from 3 to 5 previous sessions ✨ Extract continuity points (NPCs, hooks, locations, decisions) ✨ Add mandatory continuity requirements to AI prompt ✨ Enhanced prompt with core principles and checklist ✨ Emphasize cause-and-effect and player agency ✨ NPC memory and consequences tracking Improvements: - NPCs are automatically detected and tracked - Unresolved hooks are identified and required to address - Player decisions must have consequences - Tone and pacing consistency emphasized - Callbacks to earlier sessions enforced Result: Sessions feel like natural progression instead of disconnected episodesa79cfc6 -
Fix image generator to read API keys from environment
official.ghost.logic- Read OPENAI_API_KEY and HUGGINGFACE_API_KEY directly from env - Support both HUGGINGFACE_API_KEY and HF_TOKEN - Change error to warning (don't fail app startup) - Add debug logging for image gen keys - Image generation now optional if no keys provided0935d82 -
Add lazy initialization for Anthropic client
official.ghost.logic- Re-initialize client from env if not set during first call - Provides better error message pointing to HF Spaces Secrets - Fixes 'Anthropic client not initialized' errored1e0bc -
Fix: Read API keys directly from environment variables
official.ghost.logic- Use os.getenv() directly instead of config object - Add debug logging to show which clients initialize - Show first 10 chars of key for verification - This ensures HF Spaces secrets are properly readb86858a -
Trigger rebuild to load API key from secrets
official.ghost.logic67393de -
Fix GPU decorator placement - use simple dummy function
official.ghost.logic- Remove @spaces.GPU from UI functions (was causing startup hang) - Add simple dummy GPU function just to satisfy HF detection - App uses API calls (no local models) so GPU not actually needed - Should start immediately nowf0e06a6 -
Add @spaces.GPU decorator to AI generation functions
official.ghost.logic- Decorate create_character_ui with @spaces.GPU - Enables ZeroGPU acceleration for AI model calls - Satisfies HF Spaces GPU detection requirement425645b -
Add ZeroGPU compatibility for HF Spaces
official.ghost.logic- Import spaces module - Add @spaces.GPU decorated dummy function - Satisfies HF Spaces GPU detection requirement - Uses FREE ZeroGPU infrastructurebe976cc -
Add .space config to disable GPU requirement
official.ghost.logicConfigure Space for CPU-basic hardware0a205e3 -
Ultra-minimal requirements - no version pins
official.ghost.logicLet pip resolve all versions automatically for fastest build5a3c1da -
Optimize requirements.txt for faster HF Spaces build
official.ghost.logic- Use exact versions instead of >= to speed up dependency resolution - Remove unused dependencies (dice, fastmcp, rich, tqdm, pillow, requests) - Keep only essential packages for Gradio app - Should fix containerd timeout issuesfda26e2 -
Fix startup issues for HF Spaces
official.ghost.logic- Rename app_v2.py → app.py (HF Spaces requirement) - Update config.py to not fail on missing API keys - Add graceful warnings instead of errors - App will now start and show friendly messages in UI - Added has_any_api_key() and get_available_providers() helpers09d5a09 -
Rename app_v2.py to app.py
Verified signature969a225 -
Deploy D&D Campaign Manager v2
official.ghost.logic- Complete AI-powered D&D 5e character creator - Autonomous campaign synthesis from party composition - Session auto-generation with context from uploaded notes - MCP server with 7 D&D 5e rules tools - Campaign and session tracking - Character export to formatted sheets - Support for Claude, GPT-4, and Gemini Features: ✨ Campaign synthesis (autonomous AI) 📖 Session auto-generation 🎯 Encounter balancing (MCP tools) 🧙 Character creation with AI backstories 📝 Session notes parsing and context integration71b378e -
initial commit
Verified signature6a9c45b