Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
# app.py
|
|
|
2 |
import os
|
3 |
import sys
|
4 |
import logging
|
@@ -6,9 +7,8 @@ import gradio as gr
|
|
6 |
import spaces
|
7 |
import torch
|
8 |
|
9 |
-
#
|
10 |
-
|
11 |
-
sys.path.insert(0, PROJECT_ROOT)
|
12 |
|
13 |
# Importaciones del proyecto
|
14 |
from modules.ui.router import create_router
|
|
|
1 |
# app.py
|
2 |
+
# app.py
|
3 |
import os
|
4 |
import sys
|
5 |
import logging
|
|
|
7 |
import spaces
|
8 |
import torch
|
9 |
|
10 |
+
# Asegurarnos que el directorio raíz está en el path
|
11 |
+
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
|
12 |
|
13 |
# Importaciones del proyecto
|
14 |
from modules.ui.router import create_router
|