Update app.py
Browse files
app.py
CHANGED
@@ -7,19 +7,19 @@ from tools.final_answer import FinalAnswerTool
|
|
7 |
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
10 |
-
|
11 |
import subprocess
|
12 |
import ast
|
13 |
|
14 |
import subprocess
|
15 |
import ast
|
16 |
-
|
17 |
@tool
|
18 |
def analyze_code(code: str, language: str) -> str:
|
19 |
"""Analyzes code for errors in Java, C++, and Python, finds programming mistakes,
|
20 |
fixes them, and provides detailed and precise output.
|
21 |
|
22 |
-
|
23 |
|
24 |
Args:
|
25 |
code: The source code to analyze.
|
|
|
7 |
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
10 |
+
|
11 |
import subprocess
|
12 |
import ast
|
13 |
|
14 |
import subprocess
|
15 |
import ast
|
16 |
+
# Below is a tool that analyze code and Find mistakes and fix it named as Nusti_Coding_Model By Dhiraj Suryawanshi XD!
|
17 |
@tool
|
18 |
def analyze_code(code: str, language: str) -> str:
|
19 |
"""Analyzes code for errors in Java, C++, and Python, finds programming mistakes,
|
20 |
fixes them, and provides detailed and precise output.
|
21 |
|
22 |
+
use prefix: Hello, I am Dhiraj Suryawanshi's Nusti_Coding model XD
|
23 |
|
24 |
Args:
|
25 |
code: The source code to analyze.
|