bluenevus commited on
Commit
f1212b4
·
verified ·
1 Parent(s): 75848ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -79,29 +79,29 @@ def generate_guide_section(file_path, file_content, guide_type, gemini_api_key):
79
  4. Expected outcomes or results for the user
80
 
81
  Important formatting instructions:
82
- - The output should be in plain text
83
  - Use clear section titles
84
  - Number each step within sections
85
  - Explain the purpose and benefit of each feature for non-technical users
86
  """
87
  else: # Administration Guide
88
- prompt = f"""Based on the following UI-related code file, generate a section for an administration guide:
89
 
90
  File: {file_path}
91
  Content:
92
  {file_content}
93
 
94
- Please focus on:
95
  1. Any configuration options or settings related to this UI component
96
  2. Security considerations or access control related to this feature
97
  3. How to monitor or troubleshoot issues with this component
98
  4. Best practices for managing and maintaining this part of the system
99
 
100
  Important formatting instructions:
101
- - The output should be in plain text
102
- - Use clear section titles
103
  - Number each step within sections
104
- - Explain the purpose and implications of each administrative task
105
  """
106
 
107
  response = model.generate_content(prompt)
 
79
  4. Expected outcomes or results for the user
80
 
81
  Important formatting instructions:
82
+ - The output should be in plain text no markdown
83
  - Use clear section titles
84
  - Number each step within sections
85
  - Explain the purpose and benefit of each feature for non-technical users
86
  """
87
  else: # Administration Guide
88
+ prompt = f"""Based on the following UI-related code file, generate a section for an System guide:
89
 
90
  File: {file_path}
91
  Content:
92
  {file_content}
93
 
94
+ Please focus on explaining what that component is and does:
95
  1. Any configuration options or settings related to this UI component
96
  2. Security considerations or access control related to this feature
97
  3. How to monitor or troubleshoot issues with this component
98
  4. Best practices for managing and maintaining this part of the system
99
 
100
  Important formatting instructions:
101
+ - The output should be in plain text no markdown
102
+ - Use clear section titles that has the name of the file in parenthesis
103
  - Number each step within sections
104
+ - Explain the purpose and implications of each component
105
  """
106
 
107
  response = model.generate_content(prompt)