Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
|
|
@@ -9,8 +10,21 @@ import gradio as gr
|
|
| 9 |
import matplotlib
|
| 10 |
matplotlib.use('Agg')
|
| 11 |
import matplotlib.pyplot as plt
|
|
|
|
| 12 |
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
def f1():
|
| 15 |
fig = plt.figure(figsize=(10,4))
|
| 16 |
plt.axline((0,0),slope=1,color="darkgray")
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import subprocess
|
| 3 |
|
| 4 |
|
| 5 |
|
|
|
|
| 10 |
import matplotlib
|
| 11 |
matplotlib.use('Agg')
|
| 12 |
import matplotlib.pyplot as plt
|
| 13 |
+
import subprocess
|
| 14 |
|
| 15 |
|
| 16 |
+
def setup():
|
| 17 |
+
r0 = subprocess.run(["pwd"], capture_output=True, text=True)
|
| 18 |
+
print('PWD::', r0.stdout)
|
| 19 |
+
r1 = subprocess.run(["wget", "https://github.com/google/REAPER/archive/refs/heads/master.zip"], capture_output=True, text=True)
|
| 20 |
+
print(r1.stdout)
|
| 21 |
+
r2 = subprocess.run(["ls", "-la"], capture_output=True, text=True)
|
| 22 |
+
print('LS::', r2.stdout)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
print('about to setup?')
|
| 26 |
+
setup()
|
| 27 |
+
|
| 28 |
def f1():
|
| 29 |
fig = plt.figure(figsize=(10,4))
|
| 30 |
plt.axline((0,0),slope=1,color="darkgray")
|