rootxhacker commited on
Commit
9d39551
1 Parent(s): 924074a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -13
app.py CHANGED
@@ -54,19 +54,8 @@ def get_completion(query, model, tokenizer):
54
 
55
  @spaces.GPU()
56
  def code_review(code_to_analyze):
57
- two_shot_prompt = f"""First, understand the given code:
58
- Analyze the purpose, functionality, input sources, output destinations, and logical flow of the code. Identify any security-sensitive operations.
59
-
60
- Now, review the following code:
61
-
62
- {code_to_analyze}
63
-
64
- Provide a detailed review including:
65
- 1. Potential security issues
66
- 2. Potential logic vulnerabilities
67
- 3. Suggestions for improvement
68
-
69
- Start each section with its number and title."""
70
 
71
  full_response = get_completion(two_shot_prompt, model, tokenizer)
72
 
 
54
 
55
  @spaces.GPU()
56
  def code_review(code_to_analyze):
57
+ two_shot_prompt = f"""find all vulnerabilities which in the code
58
+ {code_to_analyze} """
 
 
 
 
 
 
 
 
 
 
 
59
 
60
  full_response = get_completion(two_shot_prompt, model, tokenizer)
61