Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,16 +1,12 @@
|
|
| 1 |
import os
|
| 2 |
import gradio as gr
|
| 3 |
from crewai import Agent, Task, Crew, Process
|
| 4 |
-
from langchain_huggingface import HuggingFaceEndpoint
|
| 5 |
|
| 6 |
-
print("💀 [FORJA EN LA NUBE]: Levantando el Enjambre Abada...")
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
temperature=0.3,
|
| 12 |
-
max_new_tokens=1000
|
| 13 |
-
)
|
| 14 |
|
| 15 |
# --- DEFINICIÓN DEL ENJAMBRE ---
|
| 16 |
def iniciar_mesa_redonda(descripcion_proyecto):
|
|
@@ -21,7 +17,7 @@ def iniciar_mesa_redonda(descripcion_proyecto):
|
|
| 21 |
backstory='Eres el visionario de AbadaLabs. Creas experiencias de usuario con cero fricción.',
|
| 22 |
verbose=True,
|
| 23 |
allow_delegation=False,
|
| 24 |
-
llm=
|
| 25 |
)
|
| 26 |
|
| 27 |
# 2. El Constructor
|
|
@@ -31,7 +27,7 @@ def iniciar_mesa_redonda(descripcion_proyecto):
|
|
| 31 |
backstory='Eres un dios del código. Traduces ideas en componentes de React hermosos.',
|
| 32 |
verbose=True,
|
| 33 |
allow_delegation=False,
|
| 34 |
-
llm=
|
| 35 |
)
|
| 36 |
|
| 37 |
tarea_1 = Task(
|
|
@@ -69,8 +65,7 @@ interfaz = gr.Interface(
|
|
| 69 |
label='⚙️ Resultado de la Mesa Redonda (Código y Estrategia)'
|
| 70 |
),
|
| 71 |
title="👁️ HECTRON PRIME: Enjambre Autónomo",
|
| 72 |
-
description="Escribe tu idea. El Product Manager la diseñará y el Frontend Dev escribirá el código de React."
|
| 73 |
-
theme="dark"
|
| 74 |
)
|
| 75 |
|
| 76 |
# Encendemos el servidor web
|
|
|
|
| 1 |
import os
|
| 2 |
import gradio as gr
|
| 3 |
from crewai import Agent, Task, Crew, Process
|
|
|
|
| 4 |
|
| 5 |
+
print("💀 [FORJA EN LA NUBE]: Levantando el Enjambre Abada V2...")
|
| 6 |
|
| 7 |
+
# CrewAI moderno usa LiteLLM bajo el capó.
|
| 8 |
+
# Solo le damos el nombre del modelo. Automáticamente tomará tu secreto HUGGINGFACEHUB_API_TOKEN.
|
| 9 |
+
MODELO_NUBE = "huggingface/HuggingFaceH4/zephyr-7b-beta"
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# --- DEFINICIÓN DEL ENJAMBRE ---
|
| 12 |
def iniciar_mesa_redonda(descripcion_proyecto):
|
|
|
|
| 17 |
backstory='Eres el visionario de AbadaLabs. Creas experiencias de usuario con cero fricción.',
|
| 18 |
verbose=True,
|
| 19 |
allow_delegation=False,
|
| 20 |
+
llm=MODELO_NUBE
|
| 21 |
)
|
| 22 |
|
| 23 |
# 2. El Constructor
|
|
|
|
| 27 |
backstory='Eres un dios del código. Traduces ideas en componentes de React hermosos.',
|
| 28 |
verbose=True,
|
| 29 |
allow_delegation=False,
|
| 30 |
+
llm=MODELO_NUBE
|
| 31 |
)
|
| 32 |
|
| 33 |
tarea_1 = Task(
|
|
|
|
| 65 |
label='⚙️ Resultado de la Mesa Redonda (Código y Estrategia)'
|
| 66 |
),
|
| 67 |
title="👁️ HECTRON PRIME: Enjambre Autónomo",
|
| 68 |
+
description="Escribe tu idea. El Product Manager la diseñará y el Frontend Dev escribirá el código de React."
|
|
|
|
| 69 |
)
|
| 70 |
|
| 71 |
# Encendemos el servidor web
|