Santiagogrz6 commited on
Commit
55d6351
·
verified ·
1 Parent(s): 35849b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -14,11 +14,12 @@ model = T5ForConditionalGeneration.from_pretrained(model_name)
14
 
15
  # Tu esquema personalizado
16
  SCHEMA = """
17
- Tables:
18
- bodegas(Id, Nombre, Encargado, Telefono, Email, Direccion, Horario, Regional, Latitud, Longitud)
19
- maestra(CodigoSap, Descripcion, Grupo, Agrupador, Marca, Parte, Operacion, Componente)
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)