Spaces:
Build error
Build error
Update app.py
Browse files62 unmodified lines63646566666768693 unmodified lines737475767677787962 unmodified lines explanation_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." "content": "Provide a very small explanation on how to approach the following mathematical task without calculating the answer." }, { "role": "user",3 unmodified lines explanation = llm_inference(explanation_messages) # Step 2: Generate Python Code using Explanation and User Prompt code_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_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