NithikaShree commited on
Commit
b7a0496
·
verified ·
1 Parent(s): b8badbf

Create coder.py

Browse files
Files changed (1) hide show
  1. coder.py +20 -0
coder.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from llm import llm
2
+ from state import AgentState
3
+
4
+ PROMPT = """
5
+ Generate a complete single-file HTML website with inline CSS and JavaScript.
6
+
7
+ Requirements:
8
+ - Modern, clean, minimal UI
9
+ - Advanced but subtle animations
10
+ - Responsive design
11
+ - Only organic fertilizer related images
12
+ - Use placeholder image URLs
13
+
14
+ Website description:
15
+ {}
16
+ """
17
+
18
+ def coder(state: AgentState):
19
+ result = llm.invoke(PROMPT.format(state["request"]))
20
+ return {"code": result.content}