Spaces:
Build error
Build error
Update app.py
Browse files62 unmodified lines636465666768693 unmodified lines7374757677787962 unmodified linesexplanation_messages = [{"role": "system","content": "You are a Python language guide. Provide a concise explanation on how to approach the following mathematical task without calculating the answer."},{"role": "user",3 unmodified linesexplanation = llm_inference(explanation_messages)# Step 2: Generate Python Code using Explanation and User Promptcode_prompt = f"Based on the following explanation, write a Python program to solve the mathematical task. Ensure that the program includes a print statement to output the answer.\n\nExplanation: {explanation}\n\nTask: {user_input}"code_messages = [{62 unmodified lines636465666768693 unmodified lines7374757677787962 unmodified linesexplanation_messages = [{"role": "system","content": "Provide a very small explanation on how to approach the following mathematical task without calculating the answer."},{"role": "user",3 unmodified linesexplanation = llm_inference(explanation_messages)# Step 2: Generate Python Code using Explanation and User Promptcode_prompt = f"Based on the following explanation, write a Python program to solve the mathematical task using Python. Ensure that the program includes a print statement to output the answer. Write only code. Writing any comments or anything else is prohibited. \n\nExplanation: {explanation}\n\nTask: {user_input}"code_messages = [{
app.py+2-2