Spaces:
Sleeping
Sleeping
Download src/gaia/utils/simple_memory_test.py from jm-vis/Final_Assignment_GAIAAgent: direct link, hf CLI and curl.
- Browser
- Download file 688 Bytes
-
https://huggingface.co/spaces/jm-vis/Final_Assignment_GAIAAgent/resolve/main/src/gaia/utils/simple_memory_test.py
- Command line
-
hf download hf://spaces/jm-vis/Final_Assignment_GAIAAgent/src/gaia/utils/simple_memory_test.py
-
curl -L -o simple_memory_test.py https://huggingface.co/spaces/jm-vis/Final_Assignment_GAIAAgent/resolve/main/src/gaia/utils/simple_memory_test.py
688 Bytes
| #!/usr/bin/env python | |
| """ | |
| Simple test to debug memory module imports. | |
| """ | |
| import sys | |
| def test_simple(): | |
| """Test simple memory imports.""" | |
| try: | |
| import memory | |
| print("✅ Successfully imported memory module") | |
| # Print all attributes in the memory module | |
| print("\nContents of memory module:") | |
| for attr in dir(memory): | |
| if not attr.startswith('__'): | |
| print(f" - {attr}") | |
| except ImportError as e: | |
| print(f"❌ Failed to import memory module: {e}") | |
| return False | |
| return True | |
| if __name__ == "__main__": | |
| if test_simple(): | |
| sys.exit(0) | |
| else: | |
| sys.exit(1) |