Spaces:
Runtime error
Runtime error
Download src/utils.py from dorkai/gradiopyg: direct link, hf CLI and curl.
- Browser
- Download file 303 Bytes
-
https://huggingface.co/spaces/dorkai/gradiopyg/resolve/main/src/utils.py
- Command line
-
hf download hf://spaces/dorkai/gradiopyg/src/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/dorkai/gradiopyg/resolve/main/src/utils.py
303 Bytes
| def clear_stdout(): | |
| ''' | |
| Attempts to clear stdout, whether running in a notebook (IPython) or locally | |
| in a Unix envirnoment. | |
| ''' | |
| try: | |
| from IPython.display import clear_output | |
| clear_output(wait=True) | |
| except ImportError: | |
| import os | |
| os.system("clear") | |