Moibe commited on
Commit
3ff89da
·
1 Parent(s): 3e64a10

Agregar variable en servidor: servidor

Browse files
Files changed (2) hide show
  1. autenticacion.py +4 -1
  2. globales.py +1 -1
autenticacion.py CHANGED
@@ -3,18 +3,21 @@ import socket
3
 
4
  import json
5
 
6
- def obtenAccesoHF():
7
  if local_check():
8
  print("Estoy en entorno Local...")
9
  import bridges
10
  #Acceso a HF
11
  llave = bridges.llave
 
12
  #Acceso a Firebase
13
  # Use the application default credentials.
14
  else:
15
  print("Estoy en entorno Remoto...")
16
  #Acceso a HF
17
  llave = os.getenv("llave")
 
 
18
  return llave
19
 
20
  def local_check():
 
3
 
4
  import json
5
 
6
+ def defineAmbiente():
7
  if local_check():
8
  print("Estoy en entorno Local...")
9
  import bridges
10
  #Acceso a HF
11
  llave = bridges.llave
12
+ servidor = "moibe"
13
  #Acceso a Firebase
14
  # Use the application default credentials.
15
  else:
16
  print("Estoy en entorno Remoto...")
17
  #Acceso a HF
18
  llave = os.getenv("llave")
19
+ servidor = os.getenv("servidor")
20
+ print("182, el servidor es: ", servidor)
21
  return llave
22
 
23
  def local_check():
globales.py CHANGED
@@ -2,7 +2,7 @@ import autenticacion
2
  import herramientas
3
 
4
  previo = "Una fotografía de un plato blanco con "
5
- llave = autenticacion.obtenAccesoHF()
6
 
7
  espacio = "black-forest-labs/FLUX.1-schnell"
8
  #espacio = "black-forest-labs/FLUX.1-dev"
 
2
  import herramientas
3
 
4
  previo = "Una fotografía de un plato blanco con "
5
+ llave, ambiente = autenticacion.defineAmbiente()
6
 
7
  espacio = "black-forest-labs/FLUX.1-schnell"
8
  #espacio = "black-forest-labs/FLUX.1-dev"