Spaces:
Paused
Paused
Download Powers/__main__.py from Dragdev/telegrambot: direct link, hf CLI and curl.
- Browser
- Download file 581 Bytes
-
https://huggingface.co/spaces/Dragdev/telegrambot/resolve/main/Powers/__main__.py
- Command line
-
hf download hf://spaces/Dragdev/telegrambot/Powers/__main__.py
-
curl -L -o __main__.py https://huggingface.co/spaces/Dragdev/telegrambot/resolve/main/Powers/__main__.py
581 Bytes
| import os | |
| from platform import system | |
| from Powers import LOGGER | |
| from Powers.bot_class import Gojo | |
| if __name__ == "__main__": | |
| if system() == "Windows": | |
| LOGGER.info("Windows system detected thus not installing uvloop") | |
| else: | |
| LOGGER.info("Attempting to install uvloop") | |
| try: | |
| os.system("pip3 install uvloop") | |
| import uvloop | |
| uvloop.install() | |
| LOGGER.info("Installed uvloop continuing the process") | |
| except: | |
| LOGGER.info("Failed to install uvloop continuing the process") | |
| Gojo().run() | |