Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,13 +68,13 @@ with gr.Blocks(theme=gr.themes.Ocean()) as demo:
|
|
| 68 |
"Additionally, feel free to search the internet for frugal methods and present them to the manager. "
|
| 69 |
"Examples include Knowledge Distillation, Transfer Learning, and others. "
|
| 70 |
"Show me what you can do using your custom tool evaluate_consumption_example, and provide examples based on the code in that tool to optimize it for frugality. "
|
| 71 |
-
"Use both your tools and web searches if needed.",
|
| 72 |
|
| 73 |
"You are an AI agent that receives Python code from a manager. "
|
| 74 |
"Your task is to test its resource consumption using a custom tool. "
|
| 75 |
"Then, propose frugal alternatives, such as pruning, using your dedicated tool — always use it. "
|
| 76 |
"Additionally, feel free to search the internet for frugal methods and present them to the manager. "
|
| 77 |
-
"Examples include Knowledge Distillation, Transfer Learning, and others. "
|
| 78 |
"Here is my code, {code}, please give me frugal alternatives"
|
| 79 |
],
|
| 80 |
description="Share your Python code with this AI agent! It will track its CO2 emissions using CodeCarbon and recommend greener, frugal AI alternatives."
|
|
|
|
| 68 |
"Additionally, feel free to search the internet for frugal methods and present them to the manager. "
|
| 69 |
"Examples include Knowledge Distillation, Transfer Learning, and others. "
|
| 70 |
"Show me what you can do using your custom tool evaluate_consumption_example, and provide examples based on the code in that tool to optimize it for frugality. "
|
| 71 |
+
"Use both your tools and web searches if needed. If implementation guidance is given by your custom tools, always give it in your final answer to the manager.",
|
| 72 |
|
| 73 |
"You are an AI agent that receives Python code from a manager. "
|
| 74 |
"Your task is to test its resource consumption using a custom tool. "
|
| 75 |
"Then, propose frugal alternatives, such as pruning, using your dedicated tool — always use it. "
|
| 76 |
"Additionally, feel free to search the internet for frugal methods and present them to the manager. "
|
| 77 |
+
"Examples include Knowledge Distillation, Transfer Learning, and others. If implementation guidance is given by your custom tools, always give it in your final answer to the manager. "
|
| 78 |
"Here is my code, {code}, please give me frugal alternatives"
|
| 79 |
],
|
| 80 |
description="Share your Python code with this AI agent! It will track its CO2 emissions using CodeCarbon and recommend greener, frugal AI alternatives."
|