Spaces:
Sleeping
Sleeping
Commit ·
26e469b
1
Parent(s): 5675d05
secu: use non gaia test question
Browse filesFiles changed (3)
125 unmodified lines126127128129130131132133134135136137138139140125 unmodified linesif __name__ == "__main__":# Example usage""""question = "How many studio albums were published by Mercedes Sosa between 2000 and 2009 (included)? You can use the latest 2022 version of english wikipedia.""""question = """Hi, I was out sick from my classes on Friday, so I'm trying to figure out what I need to study for my Calculus mid-term next week. My friend from class sent me an audio recording of Professor Willowbrook giving out the recommended reading for the test, but my headphones are broken :(Could you please listen to the recording for me and tell me the page numbers I'm supposed to go over? I've attached a file called Homework.mp3 that has the recording. Please provide just the page numbers as a comma-delimited list. And please provide the list in ascending order.File URL: https://agents-course-unit4-scoring.hf.space/files/1f975693-876d-457b-a649-393859e79bf3"""agent = MultiAgent()answer = agent(question)125 unmodified lines126127128129130131132133134125 unmodified linesif __name__ == "__main__":# Example usagequestion = """What was the actual enrollment of the Malko competition in 2023?"""agent = MultiAgent()answer = agent(question)
28 unmodified lines2930313233343517 unmodified lines5354555657585928 unmodified lineselif reviewer_answer == "model":# If the reviewer agent suggests using the model, we can proceed with the model agentprint("Using model agent to answer the question.")fixed_answer = model_agent.run(model_prompt + "\nThe question is:\n" + question)print(f"Model agent answer: {fixed_answer}")return fixed_answer17 unmodified linesif __name__ == "__main__":# Example usagequestion = "How many studio albums were published by Mercedes Sosa between 2000 and 2009 (included)? You can use the latest 2022 version of english wikipedia."agent = BasicAgent()answer = agent(question)print(f"Answer: {answer}")28 unmodified lines2930313233343517 unmodified lines5354555657585928 unmodified lineselif reviewer_answer == "model":# If the reviewer agent suggests using the model, we can proceed with the model agentprint("Using model agent to answer the question.")fixed_answer = model_agent.run(myprompts.model_prompt + "\nThe question is:\n" + question)print(f"Model agent answer: {fixed_answer}")return fixed_answer17 unmodified linesif __name__ == "__main__":# Example usagequestion = "What was the actual enrollment of the Malko competition in 2023?"agent = BasicAgent()answer = agent(question)print(f"Answer: {answer}")
123456import osfrom smolagents import OpenAIServerModel, CodeAgentmodel = OpenAIServerModel(model_id="Qwen/Qwen2.5-1.5B-Instruct",api_base="http://192.168.1.39:18000/v1",12345678import osfrom smolagents import OpenAIServerModel, CodeAgent# test file in cas I need to run entirely locallymodel = OpenAIServerModel(model_id="Qwen/Qwen2.5-1.5B-Instruct",api_base="http://192.168.1.39:18000/v1",
multiagents.py+2-8
myagent.py+2-2
vllm_asopenai_test.py+2