Update app.py
Browse files
app.py
CHANGED
@@ -392,20 +392,27 @@ def validate_and_generate_documentation(api_url, headers, gemini_output, file_co
|
|
392 |
Functions identified by Gemini:
|
393 |
{gemini_output}
|
394 |
|
395 |
-
|
396 |
-
1. Generate a summary of the project:
|
|
|
397 |
Project Summary:
|
398 |
-
<
|
|
|
399 |
|
400 |
-
2. Refine the user-defined functionality:
|
|
|
401 |
Functionality Summary:
|
402 |
-
<
|
|
|
403 |
|
404 |
-
3. Describe the flow of the functionality:
|
|
|
405 |
Functionality Flow:
|
406 |
-
<Explain the sequence of functions and data flow
|
|
|
407 |
|
408 |
-
4. For all relevant functions, generate detailed documentation:
|
|
|
409 |
Function Documentation:
|
410 |
For each relevant function:
|
411 |
- Summary: <Description of the function's purpose>
|
@@ -416,7 +423,9 @@ def validate_and_generate_documentation(api_url, headers, gemini_output, file_co
|
|
416 |
- Algorithmic Details: <Description of the algorithm used in the function>
|
417 |
- Error Handling: <Description of how the function handles errors>
|
418 |
- Assumptions: <Any assumptions the function makes>
|
419 |
-
- Example Usage: <Example demonstrating how to use the function
|
|
|
|
|
420 |
"""
|
421 |
|
422 |
# Split file contents into chunks to avoid exceeding the token limit
|
|
|
392 |
Functions identified by Gemini:
|
393 |
{gemini_output}
|
394 |
|
395 |
+
Qwen, identify the functions provided above in the project, and with the User-specified functionality in mind, perform these tasks:
|
396 |
+
1. Generate a summary of the project in this format:
|
397 |
+
'
|
398 |
Project Summary:
|
399 |
+
<Qwen, include project description and library or module dependencies here>\n
|
400 |
+
'
|
401 |
|
402 |
+
2. Refine the user-defined functionality with your answer in this format:
|
403 |
+
'
|
404 |
Functionality Summary:
|
405 |
+
<Qwen, provide an enhanced description of user-specified functionality here>\n
|
406 |
+
'
|
407 |
|
408 |
+
3. Describe the flow of the functionality with your answer here:
|
409 |
+
'
|
410 |
Functionality Flow:
|
411 |
+
<Qwen, Explain the sequence of functions and data flow>\n
|
412 |
+
'
|
413 |
|
414 |
+
4. For all relevant functions, generate detailed documentation in this format:
|
415 |
+
'
|
416 |
Function Documentation:
|
417 |
For each relevant function:
|
418 |
- Summary: <Description of the function's purpose>
|
|
|
423 |
- Algorithmic Details: <Description of the algorithm used in the function>
|
424 |
- Error Handling: <Description of how the function handles errors>
|
425 |
- Assumptions: <Any assumptions the function makes>
|
426 |
+
- Example Usage: <Example demonstrating how to use the function>\n
|
427 |
+
'
|
428 |
+
5. Qwen, return only what was asked of you in the 4 tasks defined above, and nothing else
|
429 |
"""
|
430 |
|
431 |
# Split file contents into chunks to avoid exceeding the token limit
|