Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,10 @@ model = T5ForConditionalGeneration.from_pretrained("cssupport/t5-small-awesome-t
|
|
| 11 |
# Esquema de base de datos
|
| 12 |
SCHEMA = """
|
| 13 |
Database schema:
|
| 14 |
-
Table bodegas(Id, Nombre, Encargado, Telefono, Email, Direccion, Horario, Regional, Latitud,
|
| 15 |
Table maestra(CodigoSap, Descripcion, Grupo, Agrupador, Marca, Parte, Operacion, Componente)
|
| 16 |
"""
|
|
|
|
| 17 |
# Funci贸n principal
|
| 18 |
def generar_sql(pregunta_espanol):
|
| 19 |
try:
|
|
|
|
| 11 |
# Esquema de base de datos
|
| 12 |
SCHEMA = """
|
| 13 |
Database schema:
|
| 14 |
+
Table bodegas(Id, Nombre, Encargado, Telefono, Email, Direccion, Horario, Regional, Latitud, Longitud)
|
| 15 |
Table maestra(CodigoSap, Descripcion, Grupo, Agrupador, Marca, Parte, Operacion, Componente)
|
| 16 |
"""
|
| 17 |
+
|
| 18 |
# Funci贸n principal
|
| 19 |
def generar_sql(pregunta_espanol):
|
| 20 |
try:
|