Add Stability Models
Browse files- funciones.py +5 -5
funciones.py
CHANGED
@@ -63,9 +63,6 @@ def genera_platillo_gpu(platillo):
|
|
63 |
)
|
64 |
|
65 |
def genera_platillo_inference(platillo):
|
66 |
-
|
67 |
-
modelo_actual = conexion_firebase.obtenDato('nowme', servidor, 'modelo_actual') #Forma actual
|
68 |
-
modelo = modelo_actual
|
69 |
|
70 |
dict_modelos = conexion_firebase.obtenDato('nowme', servidor, 'modelos')
|
71 |
|
@@ -94,14 +91,17 @@ def genera_platillo_inference(platillo):
|
|
94 |
|
95 |
client = InferenceClient(
|
96 |
provider= provedor_seleccionado,
|
|
|
97 |
api_key=globales.llave
|
98 |
)
|
|
|
|
|
|
|
99 |
|
100 |
try:
|
101 |
image = client.text_to_image(
|
102 |
prompt,
|
103 |
-
#negative_prompt="live animals",
|
104 |
-
model=modelo_aleatorio_elegido['ruta'],
|
105 |
width=784, #786
|
106 |
height=560, #568
|
107 |
num_inference_steps=16
|
|
|
63 |
)
|
64 |
|
65 |
def genera_platillo_inference(platillo):
|
|
|
|
|
|
|
66 |
|
67 |
dict_modelos = conexion_firebase.obtenDato('nowme', servidor, 'modelos')
|
68 |
|
|
|
91 |
|
92 |
client = InferenceClient(
|
93 |
provider= provedor_seleccionado,
|
94 |
+
model=configuracion_modelo['ruta'],
|
95 |
api_key=globales.llave
|
96 |
)
|
97 |
+
|
98 |
+
print("Cree cliente: ", client)
|
99 |
+
time.sleep(0)
|
100 |
|
101 |
try:
|
102 |
image = client.text_to_image(
|
103 |
prompt,
|
104 |
+
#negative_prompt="live animals",
|
|
|
105 |
width=784, #786
|
106 |
height=560, #568
|
107 |
num_inference_steps=16
|