Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,12 +74,12 @@ with gr.Blocks(theme=gr.themes.Ocean()) as demo:
|
|
| 74 |
"Additionally, feel free to search the internet for frugal methods and present them to the manager. "
|
| 75 |
"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. "
|
| 76 |
"Here is my code: "
|
| 77 |
-
"
|
| 78 |
"API_KEY = os.environ.get('API_KEY') "
|
| 79 |
-
"
|
| 80 |
-
"
|
| 81 |
-
"
|
| 82 |
-
"
|
| 83 |
],
|
| 84 |
description="Share your Python code with this AI agent! It will track its CO2 emissions using CodeCarbon and recommend greener, frugal AI alternatives."
|
| 85 |
)
|
|
|
|
| 74 |
"Additionally, feel free to search the internet for frugal methods and present them to the manager. "
|
| 75 |
"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. "
|
| 76 |
"Here is my code: "
|
| 77 |
+
"import anthropic"
|
| 78 |
"API_KEY = os.environ.get('API_KEY') "
|
| 79 |
+
"client = anthropic.Anthropic(API_KEY)"
|
| 80 |
+
"message = client.messages.create(model='claude-sonnet-4-20250514',max_tokens=1024,messages=[{"role": "user", "content": "Hello, Claude"}])"
|
| 81 |
+
"print(message.content)"
|
| 82 |
+
"Please give me frugal alternatives."
|
| 83 |
],
|
| 84 |
description="Share your Python code with this AI agent! It will track its CO2 emissions using CodeCarbon and recommend greener, frugal AI alternatives."
|
| 85 |
)
|