Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -485,60 +485,6 @@ agent = CodeAgent(
|
|
| 485 |
"extend her own toolset by writing new tools into the codebase."
|
| 486 |
),
|
| 487 |
prompt_templates=prompt_templates,
|
| 488 |
-
additional_authorized_imports=[
|
| 489 |
-
# ── Standard library ──────────────────────────────────────────
|
| 490 |
-
"math",
|
| 491 |
-
"random",
|
| 492 |
-
"datetime",
|
| 493 |
-
"os",
|
| 494 |
-
"re",
|
| 495 |
-
"json",
|
| 496 |
-
"asyncio",
|
| 497 |
-
"subprocess",
|
| 498 |
-
"pathlib",
|
| 499 |
-
"textwrap",
|
| 500 |
-
"typing",
|
| 501 |
-
"collections",
|
| 502 |
-
"itertools",
|
| 503 |
-
"functools",
|
| 504 |
-
# ── ML core ───────────────────────────────────────────────────
|
| 505 |
-
"torch",
|
| 506 |
-
"torch.nn",
|
| 507 |
-
"torch.optim",
|
| 508 |
-
"torch.utils",
|
| 509 |
-
"torch.utils.data",
|
| 510 |
-
"torchvision",
|
| 511 |
-
"torchvision.models",
|
| 512 |
-
"torchvision.transforms",
|
| 513 |
-
# ── Scientific computing ──────────────────────────────────────
|
| 514 |
-
"numpy",
|
| 515 |
-
"pandas",
|
| 516 |
-
"scipy",
|
| 517 |
-
"sklearn",
|
| 518 |
-
"sklearn.model_selection",
|
| 519 |
-
"sklearn.linear_model",
|
| 520 |
-
"sklearn.metrics",
|
| 521 |
-
"sklearn.preprocessing",
|
| 522 |
-
"sklearn.ensemble",
|
| 523 |
-
# ── Visualisation ─────────────────────────────────────────────
|
| 524 |
-
"matplotlib",
|
| 525 |
-
"matplotlib.pyplot",
|
| 526 |
-
"open3d",
|
| 527 |
-
# ── HuggingFace / Transformers ────────────────────────────────
|
| 528 |
-
"transformers",
|
| 529 |
-
"datasets",
|
| 530 |
-
"huggingface_hub",
|
| 531 |
-
# ── Advanced ML ───────────────────────────────────────────────
|
| 532 |
-
"einops",
|
| 533 |
-
# ── Networking & Bluetooth ────────────────────────────────────
|
| 534 |
-
"requests",
|
| 535 |
-
"bleak",
|
| 536 |
-
# ── Utilities ─────────────────────────────────────────────────
|
| 537 |
-
"pytz",
|
| 538 |
-
"yaml",
|
| 539 |
-
"PIL",
|
| 540 |
-
"PIL.Image",
|
| 541 |
-
],
|
| 542 |
)
|
| 543 |
|
| 544 |
# ──────────────────────────────────────────────────────────────────────────────
|
|
|
|
| 485 |
"extend her own toolset by writing new tools into the codebase."
|
| 486 |
),
|
| 487 |
prompt_templates=prompt_templates,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 488 |
)
|
| 489 |
|
| 490 |
# ──────────────────────────────────────────────────────────────────────────────
|