rararara9999 commited on
Commit
f310dba
·
verified ·
1 Parent(s): 75d4c6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -1,9 +1,12 @@
1
  #installing dependencies
2
 
3
- pip install -U git+https://github.com/huggingface/transformers.git
4
- pip install -U git+https://github.com/huggingface/accelerate.git
 
 
 
 
5
 
6
- pip install datasets
7
 
8
  #setting up models and dataset
9
 
@@ -12,7 +15,6 @@ batch_size = 128
12
 
13
  from datasets import load_dataset
14
 
15
- pip install evaluate
16
 
17
  from google.colab import drive
18
  drive.mount('/content/drive/')
 
1
  #installing dependencies
2
 
3
+ import subprocess
4
+
5
+ subprocess.run(["pip", "install", "-U", "git+https://github.com/huggingface/transformers.git"])
6
+ subprocess.run(["pip", "install", "-U", "git+https://github.com/huggingface/accelerate.git"])
7
+ subprocess.run(["pip", "install", "datasets"])
8
+ subprocess.run(["pip", "install", "evaluate"])
9
 
 
10
 
11
  #setting up models and dataset
12
 
 
15
 
16
  from datasets import load_dataset
17
 
 
18
 
19
  from google.colab import drive
20
  drive.mount('/content/drive/')