oniati commited on
Commit
c40844d
1 Parent(s): c50ec4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,12 +1,12 @@
1
  import os
2
- os.system("pip install gradio==2.4.6")
3
 
4
  import gradio as gr
5
  from pathlib import Path
6
  os.system("pip install gsutil")
7
 
8
 
9
- os.system("git clone --branch=main https://github.com/inotiawu/t5x")
10
  os.system("mv t5x t5x_tmp; mv t5x_tmp/* .; rm -r t5x_tmp")
11
  os.system("sed -i 's:jax\[tpu\]:jax:' setup.py")
12
  os.system("python3 -m pip install -e .")
@@ -18,7 +18,7 @@ os.system("python3 -m pip install --upgrade pip")
18
  os.system("git clone --branch=main https://github.com/magenta/mt3")
19
  os.system("mv mt3 mt3_tmp; mv mt3_tmp/* .; rm -r mt3_tmp")
20
  os.system("python3 -m pip install -e .")
21
-
22
  # copy checkpoints
23
  os.system("gsutil -q -m cp -r gs://mt3/checkpoints .")
24
 
@@ -35,6 +35,7 @@ import functools
35
  import os
36
 
37
  import numpy as np
 
38
  import tensorflow.compat.v2 as tf
39
 
40
  import functools
 
1
  import os
2
+ os.system("pip install gradio")
3
 
4
  import gradio as gr
5
  from pathlib import Path
6
  os.system("pip install gsutil")
7
 
8
 
9
+ os.system("git clone --branch=main https://github.com/google-research/t5x")
10
  os.system("mv t5x t5x_tmp; mv t5x_tmp/* .; rm -r t5x_tmp")
11
  os.system("sed -i 's:jax\[tpu\]:jax:' setup.py")
12
  os.system("python3 -m pip install -e .")
 
18
  os.system("git clone --branch=main https://github.com/magenta/mt3")
19
  os.system("mv mt3 mt3_tmp; mv mt3_tmp/* .; rm -r mt3_tmp")
20
  os.system("python3 -m pip install -e .")
21
+ os.system("pip install tensorflow_cpu")
22
  # copy checkpoints
23
  os.system("gsutil -q -m cp -r gs://mt3/checkpoints .")
24
 
 
35
  import os
36
 
37
  import numpy as np
38
+
39
  import tensorflow.compat.v2 as tf
40
 
41
  import functools