Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,10 @@ elif page == "Code Workflow":
|
|
117 |
with st.spinner("Running Code Workflow..."):
|
118 |
steps = [
|
119 |
("Explain", call_groq_api(f"Explain this {programming_language} code for a {skill_level} {user_role} in {explanation_language}:\n{code_input}")),
|
120 |
-
("Refactor", call_blackbox_agent(
|
|
|
|
|
|
|
121 |
("Review", call_groq_api(f"Review this {programming_language} code for errors and improvements: {code_input}")),
|
122 |
("ErrorDetection", call_groq_api(f"Find bugs in this {programming_language} code: {code_input}")),
|
123 |
("TestGeneration", call_groq_api(f"Generate tests for this {programming_language} code: {code_input}")),
|
|
|
117 |
with st.spinner("Running Code Workflow..."):
|
118 |
steps = [
|
119 |
("Explain", call_groq_api(f"Explain this {programming_language} code for a {skill_level} {user_role} in {explanation_language}:\n{code_input}")),
|
120 |
+
("Refactor", call_blackbox_agent([
|
121 |
+
{"role": "system", "content": "You are a helpful coding assistant."},
|
122 |
+
{"role": "user", "content": f"Refactor this {programming_language} code: {code_input}"}
|
123 |
+
])),
|
124 |
("Review", call_groq_api(f"Review this {programming_language} code for errors and improvements: {code_input}")),
|
125 |
("ErrorDetection", call_groq_api(f"Find bugs in this {programming_language} code: {code_input}")),
|
126 |
("TestGeneration", call_groq_api(f"Generate tests for this {programming_language} code: {code_input}")),
|