yashm commited on
Commit
b74dae4
·
verified ·
1 Parent(s): a1468a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -8
app.py CHANGED
@@ -33,14 +33,29 @@ def create_presentation(sections):
33
  # Streamlit UI
34
  st.title('Custom Presentation Generator')
35
 
36
- # Predefined sections and contents
37
- default_sections = [
38
- {"title": "Introduction", "content": ["Background", "Problem Statement", "Purpose"]},
39
- {"title": "Literature Review", "content": ["Previous Studies", "Key Theories", "Gaps in Research"]},
40
- {"title": "Methodology", "content": ["Research Design", "Data Collection", "Data Analysis"]},
41
- {"title": "Results", "content": ["Data Presentation", "Statistical Analysis", "Interpretation"]},
42
- {"title": "Discussion and Conclusion", "content": ["Summary of Findings", "Implications", "Recommendations for Future Research"]}
43
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
  sections = []
46
  for i, default_section in enumerate(default_sections):
 
33
  # Streamlit UI
34
  st.title('Custom Presentation Generator')
35
 
36
+ # Select template type
37
+ template_type = st.selectbox('Select Presentation Type', ['Research Presentation', 'Proposal Defense'])
38
+
39
+ # Predefined sections based on template type
40
+ if template_type == 'Research Presentation':
41
+ default_sections = [
42
+ {"title": "Introduction", "content": ["Background", "Problem Statement", "Purpose"]},
43
+ {"title": "Literature Review", "content": ["Previous Studies", "Key Theories", "Gaps in Research"]},
44
+ {"title": "Methodology", "content": ["Research Design", "Data Collection", "Data Analysis"]},
45
+ {"title": "Results", "content": ["Data Presentation", "Statistical Analysis", "Interpretation"]},
46
+ {"title": "Discussion and Conclusion", "content": ["Summary of Findings", "Implications", "Recommendations for Future Research"]}
47
+ ]
48
+ elif template_type == 'Proposal Defense':
49
+ default_sections = [
50
+ {"title": "Introduction", "content": ["Background Context", "Problem Statement", "Research Questions", "Purpose and Significance"]},
51
+ {"title": "Literature Review", "content": ["Key Theories and Concepts", "Current State of Research", "Gaps in Literature"]},
52
+ {"title": "Research Design and Methodology", "content": ["Research Framework", "Data Collection Methods", "Analysis Plan", "Ethical Considerations"]},
53
+ {"title": "Expected Results", "content": ["Predicted Outcomes", "Potential Implications", "Limitations"]},
54
+ {"title": "Timeline", "content": ["Research Phases", "Key Milestones", "Completion Dates"]},
55
+ {"title": "Budget", "content": ["Estimated Costs", "Resource Allocation", "Justification"]},
56
+ {"title": "Conclusion", "content": ["Summary of Key Points", "Reiteration of Research Importance", "Next Steps"]},
57
+ {"title": "Questions and Discussion", "content": ["Anticipated Questions", "Potential Answers", "Further Clarifications"]}
58
+ ]
59
 
60
  sections = []
61
  for i, default_section in enumerate(default_sections):