ombhojane commited on
Commit
cc78ed6
·
verified ·
1 Parent(s): 88934e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -26
app.py CHANGED
@@ -8,7 +8,7 @@ genai.configure(api_key=api_key)
8
  generation_config = {
9
  "temperature": 0.9,
10
  "top_p": 1,
11
- "top_k": 50, # Adjusted to allow for more diverse outputs
12
  "max_output_tokens": 2048,
13
  }
14
 
@@ -27,41 +27,45 @@ st.title('Project Planner')
27
 
28
  project_idea = st.text_area("Describe your coding project idea:", height=150)
29
  must_have_features = st.text_input("List must-have features:")
 
30
  timeline = st.text_input("What is your timeline for this project?")
31
 
32
  if st.button('Generate Project Charter'):
33
- if project_idea and must_have_features and timeline:
34
  prompt = (
35
- f"The coding project idea is: {project_idea}\n"
36
- f"The must-have features for launch are: {must_have_features}\n"
37
- f"The expected timeline for the project is: {timeline}\n"
 
38
 
39
- "Please analyze the project details and generate a draft project charter document covering the following aspects:\n\n"
40
 
41
- "- One-paragraph summarizing the project objectives, key requirements, and outcomes\n"
42
- "- High-level user flow diagram showing the key screens and user journey\n"
43
- "- Breakdown of the high-level technical design and architecture\n"
44
- "- Phase-wise plan from design, development, testing to launch\n"
45
- "- List of roles required like frontend, backend, devops engineers etc.\n"
46
- "- Tools and technologies to be used for the MVP\n"
47
- "- Initial effort estimation overview across product, engineering, testing\n"
48
- "- Biggest areas of risks and assumptions to validate\n\n"
49
 
50
- """For the user flow diagram, please use the mermaid JS syntax, for example:\n\n
51
 
52
- ```mermaid\n"
53
- "flowchart TD\n"
54
- " A[Ecommerce] --> B{View product} \n"
55
- " B --> C{Add to cart}\n"
56
- " C --> D[Payment]\n"
57
- " D --> E[Order confirmed]\n"
58
- "```\n\n"
 
 
 
 
59
 
60
- Provide comprehensive details in each charter section for clarity. Ensure it sets up the key technical guidelines, resource planning, and execution roadmap based on the information provided.
61
- """
62
- )
63
 
64
-
65
  response = model.generate_content([prompt])
66
  st.write(response.text)
67
  else:
 
8
  generation_config = {
9
  "temperature": 0.9,
10
  "top_p": 1,
11
+ "top_k": 50,
12
  "max_output_tokens": 2048,
13
  }
14
 
 
27
 
28
  project_idea = st.text_area("Describe your coding project idea:", height=150)
29
  must_have_features = st.text_input("List must-have features:")
30
+ tech_stack = st.text_input("Enter technology stack of your project:")
31
  timeline = st.text_input("What is your timeline for this project?")
32
 
33
  if st.button('Generate Project Charter'):
34
+ if project_idea and must_have_features and tech_stack and timeline:
35
  prompt = (
36
+ f"The coding project idea is: {project_idea}\n"
37
+ f"The must-have features for launch are: {must_have_features}\n"
38
+ f"The technology stack for the project is: {tech_stack}\n"
39
+ f"The expected timeline for the project is: {timeline}\n\n"
40
 
41
+ "Please analyze the project details and generate a draft project charter document with an Agile framework focus, covering the following aspects:\n\n"
42
 
43
+ "- One-paragraph summarizing the project objectives, key requirements, and outcomes within an Agile methodology context\n"
44
+ "- High-level Agile process flow diagram showing iterations, sprints, and key milestones\n"
45
+ "- Breakdown of the high-level technical design and architecture with Agile iteration planning\n"
46
+ "- Phase-wise Agile plan from design, development, testing to launch, including sprint planning\n"
47
+ "- List of roles required like frontend, backend, devops engineers, scrum master, and product owner\n"
48
+ "- Tools and technologies to be used for the MVP, considering Agile tools for project management and collaboration\n"
49
+ "- Initial effort estimation overview across product, engineering, testing with Agile estimation techniques like story points\n"
50
+ "- Biggest areas of risks and assumptions to validate within Agile cycles\n\n"
51
 
52
+ "For the Agile process flow diagram, please use the mermaid JS syntax, for example:\n\n"
53
 
54
+ "```mermaid\n"
55
+ "flowchart TD\n"
56
+ " A[Project Kickoff] --> B[Iteration 1 Planning]\n"
57
+ " B --> C{Sprint 1}\n"
58
+ " C --> D{Sprint Review & Retrospective}\n"
59
+ " D --> E[Iteration 2 Planning]\n"
60
+ " E --> F{Sprint 2}\n"
61
+ " F --> G{Sprint Review & Retrospective}\n"
62
+ " G --> H{...}\n"
63
+ " H --> I[Final Review & Project Closure]\n"
64
+ "```\n\n"
65
 
66
+ "Provide comprehensive details in each charter section for clarity, ensuring it sets up the key technical guidelines, resource planning, and execution roadmap based on the Agile framework and the information provided."
67
+ )
 
68
 
 
69
  response = model.generate_content([prompt])
70
  st.write(response.text)
71
  else: