Spaces:
Runtime error
Runtime error
rootxhacker
commited on
Update app.py
Browse files
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"""
|
58 |
-
|
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 |
|