ishworrsubedii commited on
Commit
ecda74c
·
1 Parent(s): 57f8a86

update: minor changes

Browse files
Files changed (1) hide show
  1. logic.py +8 -8
logic.py CHANGED
@@ -50,7 +50,7 @@ class CodeProcessor:
50
  },
51
  {
52
  "role": "user",
53
- "content": f"Here is the code I want to replicate: {code_text}. Please generate a prompt that can produce similar code, focusing on understanding the problem being solved, core features, required packages, and the overall logic behind the implementation without giving a single line of code,"
54
  }
55
  ]
56
 
@@ -65,13 +65,13 @@ class CodeProcessor:
65
  print("Prompt generation completed............")
66
 
67
  markdown_output = f"""
68
- # Summary of Code Snippet
69
- {summary_response}
70
 
71
- # Detailed Code Explanation for Snippet
72
- {detail_generation_response}
73
 
74
- # Similar Code Generation Prompt for Code Snippets
75
- {prompt_for_generating_similar_code_response}
76
- """
77
  return markdown_output
 
50
  },
51
  {
52
  "role": "user",
53
+ "content": f"Here is the code I want to replicate: {code_text}. Please generate a prompt that can produce similar code, focusing on understanding the problem being solved, core features, required packages, and the overall logic behind the implementation without giving a single line of code"
54
  }
55
  ]
56
 
 
65
  print("Prompt generation completed............")
66
 
67
  markdown_output = f"""
68
+ # Summary of Code Snippet
69
+ {summary_response}
70
 
71
+ # Detailed Code Explanation for Snippet
72
+ {detail_generation_response}
73
 
74
+ # Similar Code Generation Prompt for Code Snippets
75
+ {prompt_for_generating_similar_code_response}
76
+ """
77
  return markdown_output