File size: 1,588 Bytes
2e3808d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# GameForge Space - HF Spaces Deployment
#
# To deploy this to Hugging Face Spaces:
#
# 1. Create a new Space on huggingface.co/new-space
#    - SDK: Gradio
#    - Hardware: ZeroGPU (free quota, 3.5 min/day)
#
# 2. Push this space/ directory:
#    huggingface-cli upload jkorstad/gameforge-space ./space/
#
# 3. The app will be live at:
#    https://huggingface.co/spaces/jkorstad/gameforge-space
#
# What you get:
# - Custom HTML/JS frontend (not Gradio components)
# - gradio.Server backend with FastAPI routes
# - ZeroGPU for model inference (free!)
# - Queuing and concurrency management
# - gradio_client API compatibility
# - MCP tool registration
# - SSE streaming support
#
# API endpoints (all gradio_client compatible):
# - /registry_info    - List all models
# - /get_route        - Get routing for a model
# - /list_pipelines   - List pipeline definitions
# - /format_prompt    - Format prompt with templates
# - /format_npc       - Format NPC dialogue
# - /generate_image   - Generate image via FLUX (ZeroGPU)
# - /generate_3d      - Generate 3D mesh via TRELLIS.2 (ZeroGPU)
# - /generate_voice   - Generate voice via MeloTTS (ZeroGPU)
# - /generate_video   - Generate video via LTX 2.3 (ZeroGPU)
# - /generate_music   - Generate music via ACE-Step (ZeroGPU)
# - /generate_sfx     - Generate SFX via TangoFlux (ZeroGPU)
# - /list_assets      - Browse generated assets
# - /validate_asset   - Validate asset quality
# - /convert_asset    - Convert asset format
#
# MCP tools:
# - gameforge_generate  - Generate any asset type
# - gameforge_list_models - List available models