| |
| if not 'installed' in locals(): |
| %cd /content |
| from google.colab import drive |
| drive.mount('/content/drive') |
| from IPython.display import clear_output |
| from ipywidgets import Button |
| import os |
| if not os.path.exists('/content/drive'): |
| print("Your drive is not mounted. Creating Fake Drive.") |
| os.makedirs('/content/drive/MyDrive') |
| if not os.path.exists('/content/drive/MyDrive/project-main'): |
| !wget https://huggingface.co/ArianatorQualquer/Kzkdjdbfjd/resolve/main/project-main.zip -O '/content/project-main.zip' && unzip 'project-main.zip' -d /content/drive/MyDrive |
| !cd '/content/drive/MyDrive/project-main' && python download_files.py && pip install -r 'requirements.txt' |
| !rm /content/project-main.zip |
| !rm -r /content/sample_data |
| !mkdir -p /content/dataset |
| clear_output() |
| Button(description="\u2714 Success", button_style="success") |
| tensorboard = False |
| if tensorboard: |
| %load_ext tensorboard |
| %tensorboard --logdir ./logs |
| %cd /content/drive/MyDrive/project-main |
| !python app.py --colab |