Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,11 +14,12 @@ model = T5ForConditionalGeneration.from_pretrained(model_name)
|
|
14 |
|
15 |
# Tu esquema personalizado
|
16 |
SCHEMA = """
|
17 |
-
|
18 |
-
bodegas
|
19 |
-
maestra
|
20 |
"""
|
21 |
|
|
|
22 |
def generar_sql(pregunta_espanol):
|
23 |
try:
|
24 |
pregunta_ingles = GoogleTranslator(source="es", target="en").translate(pregunta_espanol)
|
|
|
14 |
|
15 |
# Tu esquema personalizado
|
16 |
SCHEMA = """
|
17 |
+
Schema:
|
18 |
+
Table bodegas with columns: Id, Nombre, Encargado, Telefono, Email, Direccion, Horario, Regional, Latitud, Longitud.
|
19 |
+
Table maestra with columns: CodigoSap, Descripcion, Grupo, Agrupador, Marca, Parte, Operacion, Componente.
|
20 |
"""
|
21 |
|
22 |
+
|
23 |
def generar_sql(pregunta_espanol):
|
24 |
try:
|
25 |
pregunta_ingles = GoogleTranslator(source="es", target="en").translate(pregunta_espanol)
|