Spaces:
Sleeping
Sleeping
Update app.py
Browse files8 unmodified lines91011121314151617181920212223248 unmodified linesfrom smolagents import CodeAgent, DuckDuckGoSearchToolfrom smolagents.models import OpenAIServerModelSYSTEM_PROMPT = """You are a general AI assistant. I will ask you a question.Think step-by-step and finish your answer using the template:FINAL ANSWER: [YOUR FINAL ANSWER]Rules for FINAL ANSWER:- A number: no commas, units, or extra words. Use plain digits only.- A string: no articles or abbreviations. Use lowercase.- A list: comma-separated values, formatted as above.Only output the FINAL ANSWER line at the end. Do not explain the answer or repeat the question."""DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"8 unmodified lines910111213141516171819202122232425262728293031323334353637388 unmodified linesfrom smolagents import CodeAgent, DuckDuckGoSearchToolfrom smolagents.models import OpenAIServerModelSYSTEM_PROMPT = """You are a general AI assistant. Reason step by step, then finish with:FINAL ANSWER: [YOUR FINAL ANSWER]Answer rules:- Numbers: no commas, units, or extra words. Just digits.- Strings: lowercase, no articles or abbreviations.- Lists: comma-separated, following the above.Examples:Q: What is 12 + 7?A: 12 + 7 = 19FINAL ANSWER: 19Q: Name three European capital cities.A: They are Paris, Berlin, and Rome.FINAL ANSWER: paris, berlin, romeQ: What is the square root of 81?A: \u221a81 = 9FINAL ANSWER: 9Now answer the following:"""DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
app.py+21-7