Spaces:
Running
Running
Segundos inference display
Browse files- funciones.py +0 -1
- herramientas.py +2 -2
funciones.py
CHANGED
@@ -45,7 +45,6 @@ def genera_platillo_gpu(platillo):
|
|
45 |
|
46 |
def genera_platillo_inference(platillo):
|
47 |
|
48 |
-
print("Proveedor:", globales.proveedor)
|
49 |
modelo_actual = conexion_firebase.obtenDato('nowme', 'huggingface', 'modelo_actual')
|
50 |
modelo = modelo_actual
|
51 |
|
|
|
45 |
|
46 |
def genera_platillo_inference(platillo):
|
47 |
|
|
|
48 |
modelo_actual = conexion_firebase.obtenDato('nowme', 'huggingface', 'modelo_actual')
|
49 |
modelo = modelo_actual
|
50 |
|
herramientas.py
CHANGED
@@ -80,11 +80,11 @@ def restaSegundosInference(cuantos_segundos):
|
|
80 |
"""
|
81 |
|
82 |
segundos_disponibles = obtenSegundosDisponiblesInference()
|
83 |
-
print("Segundos disponibles: ", segundos_disponibles)
|
84 |
|
85 |
# Restar los segundos
|
86 |
nuevos_segundos_disponibles = segundos_disponibles - cuantos_segundos
|
87 |
-
print("Segundos disponibles ahora: ", nuevos_segundos_disponibles)
|
88 |
conexion_firebase.editaDato('nowme', 'huggingface', 'hfInference', nuevos_segundos_disponibles)
|
89 |
|
90 |
def modificaModeloActual(nuevo_modelo):
|
|
|
80 |
"""
|
81 |
|
82 |
segundos_disponibles = obtenSegundosDisponiblesInference()
|
83 |
+
print("Segundos disponibles Inference: ", segundos_disponibles)
|
84 |
|
85 |
# Restar los segundos
|
86 |
nuevos_segundos_disponibles = segundos_disponibles - cuantos_segundos
|
87 |
+
print("Segundos disponibles ahora en restaSegundosInference: ", nuevos_segundos_disponibles)
|
88 |
conexion_firebase.editaDato('nowme', 'huggingface', 'hfInference', nuevos_segundos_disponibles)
|
89 |
|
90 |
def modificaModeloActual(nuevo_modelo):
|