Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,12 @@ def predict_patch(prompt: str):
|
|
90 |
def process_file(file_obj):
|
91 |
#src = file_obj.read().decode()
|
92 |
src = file_obj
|
|
|
|
|
93 |
fname, issues = run_cppcheck(src)
|
|
|
|
|
|
|
94 |
prompt = build_prompt(fname, issues)
|
95 |
if prompt is None:
|
96 |
return "No MISRA violations found.", None
|
|
|
90 |
def process_file(file_obj):
|
91 |
#src = file_obj.read().decode()
|
92 |
src = file_obj
|
93 |
+
print("Source file - ")
|
94 |
+
print(src)
|
95 |
fname, issues = run_cppcheck(src)
|
96 |
+
print("Source file issues - ")
|
97 |
+
print(fname)
|
98 |
+
print(issues)
|
99 |
prompt = build_prompt(fname, issues)
|
100 |
if prompt is None:
|
101 |
return "No MISRA violations found.", None
|