File size: 470 Bytes
10f7f48
 
d7b9aa8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10f7f48
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import gradio as gr


import subprocess

# Define the shell command as a list of strings
command = ["make", "runfast"]

# Execute the command
try:
    result = subprocess.run(command, capture_output=True, text=True, check=True)
    print(result.stdout)
except subprocess.CalledProcessError as e:
    print("Error:", e)
    print(e.stderr)



def greet(name):
    return "Hello " + name + "!!"

iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()