Spaces:
Runtime error
Runtime error
| 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 | |