Spaces:
Sleeping
Sleeping
Download test_result.py from printf-sourav/CSV_DC_ENV: direct link, hf CLI and curl.
- Browser
- Download file 340 Bytes
-
https://huggingface.co/spaces/printf-sourav/CSV_DC_ENV/resolve/main/test_result.py
- Command line
-
hf download hf://spaces/printf-sourav/CSV_DC_ENV/test_result.py
-
curl -L -o test_result.py https://huggingface.co/spaces/printf-sourav/CSV_DC_ENV/resolve/main/test_result.py
340 Bytes
| import asyncio | |
| from client import CsvCleanerEnv | |
| async def main(): | |
| env = CsvCleanerEnv(base_url='http://localhost:8000') | |
| await env.connect() | |
| # Need to await reset | |
| obs = await env.reset(task_name="fix_column_types") | |
| print(dir(obs)) | |
| print(obs) | |
| await env.close() | |
| if __name__ == "__main__": | |
| asyncio.run(main()) | |