Spaces:
Running
Running
| 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() |