CindyDelage commited on
Commit
a477d73
·
verified ·
1 Parent(s): b4ce967

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -22,25 +22,11 @@ model = LiteLLMModel(
22
  temperature=0.2,
23
  api_key=os.environ["API_KEY"]
24
  )
25
- #model = InferenceClientModel("deepseek-ai/DeepSeek-R1",max_tokens=500, token=HF_TOKEN)
26
- #headers = {
27
- # "Authorization": f"Bearer {HF_TOKEN}"
28
- #}
29
 
30
- # Initialize the weather tool
31
  evaluate_consumption = evaluate_consumption()
32
  evaluate_consumption_example = evaluate_consumption_example()
33
  FrugalAI_methods=FrugalAI_methods()
34
 
35
- modified_prompt = (
36
- "\nYou are an AI agent that receives Python code from a manager. "
37
- "Your task is to test its resource consumption using a custom tool. "
38
- "Then, propose frugal alternatives, such as pruning, using your dedicated tool — always use it. "
39
- "Additionally, feel free to search the internet for frugal methods and present them to the manager. "
40
- "Examples include Knowledge Distillation, Transfer Learning, and others."
41
- )
42
-
43
-
44
  # Create agent with all the tools
45
  fruggy = CodeAgent(
46
  tools=[evaluate_consumption, evaluate_consumption_example, FrugalAI_methods],
 
22
  temperature=0.2,
23
  api_key=os.environ["API_KEY"]
24
  )
 
 
 
 
25
 
 
26
  evaluate_consumption = evaluate_consumption()
27
  evaluate_consumption_example = evaluate_consumption_example()
28
  FrugalAI_methods=FrugalAI_methods()
29
 
 
 
 
 
 
 
 
 
 
30
  # Create agent with all the tools
31
  fruggy = CodeAgent(
32
  tools=[evaluate_consumption, evaluate_consumption_example, FrugalAI_methods],