teragron commited on
Commit
d7b9aa8
1 Parent(s): 12e578f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py CHANGED
@@ -1,5 +1,21 @@
1
  import gradio as gr
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
 
1
  import gradio as gr
2
 
3
+
4
+ import subprocess
5
+
6
+ # Define the shell command as a list of strings
7
+ command = ["make", "runfast"]
8
+
9
+ # Execute the command
10
+ try:
11
+ result = subprocess.run(command, capture_output=True, text=True, check=True)
12
+ print(result.stdout)
13
+ except subprocess.CalledProcessError as e:
14
+ print("Error:", e)
15
+ print(e.stderr)
16
+
17
+
18
+
19
  def greet(name):
20
  return "Hello " + name + "!!"
21