File size: 367 Bytes
9fac15a
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import sys, os

# Detecta automáticamente el path donde estás ejecutando el Space
current_dir = os.path.dirname(__file__)

# Agrega el backend de Lythron al path para que pueda importarse
backend_path = os.path.join(current_dir, "AI poweful", "backend")
sys.path.append(backend_path)

# Importa la app FastAPI desde tu motor
from lythron_full import app