Update app.py
Browse files
app.py
CHANGED
|
@@ -67,22 +67,9 @@ def build_with_crew():
|
|
| 67 |
)
|
| 68 |
|
| 69 |
# Tasks
|
| 70 |
-
task1 = Task(
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
agent=planner
|
| 74 |
-
)
|
| 75 |
-
|
| 76 |
-
task2 = Task(
|
| 77 |
-
description=f"Design layout for {niche}. Dark theme #0A0A0F, orange #FF6B00 accent, Bebas Neue font, glassmorphism cards, glow effects. Mobile responsive.",
|
| 78 |
-
expected_output="A complete design specification with colors, fonts, layout, and component designs",
|
| 79 |
-
agent=designer
|
| 80 |
-
)
|
| 81 |
-
|
| 82 |
-
task3 = Task(
|
| 83 |
-
description=f"Build COMPLETE HTML for {niche}. Include: working JavaScript tool, real Hindi+English content, Indian names, Font Awesome icons, Google Fonts CDN. NO Lorem Ipsum. Return full HTML with <!DOCTYPE html>.",
|
| 84 |
-
expected_output="Complete HTML file with all CSS and JS included, ready to open in browser",
|
| 85 |
-
agent=developer
|
| 86 |
)
|
| 87 |
|
| 88 |
crew = Crew(agents=[planner, designer, developer], tasks=[task1, task2, task3])
|
|
|
|
| 67 |
)
|
| 68 |
|
| 69 |
# Tasks
|
| 70 |
+
task1 = Task(description=f"Plan sections for {niche}", expected_output="List of sections", agent=planner)
|
| 71 |
+
task2 = Task(description=f"Design layout for {niche}", expected_output="Design spec", agent=designer)
|
| 72 |
+
task3 = Task(description=f"Build HTML for {niche} with dark theme, real content, working tool. Return complete HTML.", expected_output="Complete HTML file", agent=developer)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
)
|
| 74 |
|
| 75 |
crew = Crew(agents=[planner, designer, developer], tasks=[task1, task2, task3])
|