Spaces:
Running
Running
Commit ·
241dbde
1
Parent(s): a7ad43b
feat: Add Hugging Face Spaces entry point
Browse files- Created app.py as HF Spaces entry point
- Imports and launches main Gradio app from web/app_gradio.py
- Maintains compatibility with HF Spaces deployment requirements
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
app.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""
|
| 3 |
+
D&D RAG Game Master - Hugging Face Spaces Entry Point
|
| 4 |
+
|
| 5 |
+
This file is the entry point for Hugging Face Spaces deployment.
|
| 6 |
+
It imports and launches the main Gradio app from web/app_gradio.py
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
import sys
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
|
| 12 |
+
# Add project root to path
|
| 13 |
+
sys.path.insert(0, str(Path(__file__).parent))
|
| 14 |
+
|
| 15 |
+
# Import the main Gradio app
|
| 16 |
+
from web.app_gradio import demo
|
| 17 |
+
|
| 18 |
+
if __name__ == "__main__":
|
| 19 |
+
# Launch the app
|
| 20 |
+
# HF Spaces automatically detects the demo object and runs it
|
| 21 |
+
demo.launch()
|