ArianatorQualquer commited on
Commit
7100ed1
·
1 Parent(s): 15d9398

Create Celula

Browse files
Files changed (1) hide show
  1. Celula +25 -0
Celula ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #@title OR Open the GUI (Banned for free Colab Notebooks)
2
+ if not 'installed' in locals():
3
+ %cd /content
4
+ from google.colab import drive
5
+ drive.mount('/content/drive')
6
+ from IPython.display import clear_output
7
+ from ipywidgets import Button
8
+ import os
9
+ if not os.path.exists('/content/drive'):
10
+ print("Your drive is not mounted. Creating Fake Drive.")
11
+ os.makedirs('/content/drive/MyDrive')
12
+ if not os.path.exists('/content/drive/MyDrive/project-main'):
13
+ !wget https://huggingface.co/ArianatorQualquer/Kzkdjdbfjd/resolve/main/project-main.zip -O '/content/project-main.zip' && unzip 'project-main.zip' -d /content/drive/MyDrive
14
+ !cd '/content/drive/MyDrive/project-main' && python download_files.py && pip install -r 'requirements.txt'
15
+ !rm /content/project-main.zip
16
+ !rm -r /content/sample_data
17
+ !mkdir -p /content/dataset
18
+ clear_output()
19
+ Button(description="\u2714 Success", button_style="success")
20
+ tensorboard = False #@param {type:"boolean"}
21
+ if tensorboard:
22
+ %load_ext tensorboard
23
+ %tensorboard --logdir ./logs
24
+ %cd /content/drive/MyDrive/project-main
25
+ !python app.py --colab