File size: 968 Bytes
a178a59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/usr/bin/env python3
"""
Local development version of Spacely AI Interior Designer
Run this for fast local development on Mac
"""

import gradio as gr
import sys
import os

# Add current directory to path
sys.path.append(os.path.dirname(os.path.abspath(__file__)))

# Import the main app
from app_gradio import create_interface

def main():
    print("🏠 Starting Spacely AI Interior Designer (Local Mode)")
    print("πŸ’» Running on Mac with local GPU acceleration")
    print("πŸš€ Fast development mode - no cloud delays!")
    
    # Create interface
    demo = create_interface()
    
    # Launch with local settings
    demo.launch(
        server_name="0.0.0.0",  # Allow external connections
        server_port=7860,       # Standard Gradio port
        share=False,            # No public link needed
        show_error=True,        # Show detailed errors
        debug=True              # Enable debug mode
    )

if __name__ == "__main__":
    main()