alexcanton commited on
Commit
7389ed9
·
verified ·
1 Parent(s): 77fbff7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -1,9 +1,10 @@
1
- import gradio as gr
2
  import subprocess
3
 
4
- def run_command(command):
5
- result = subprocess.run(command, shell=True, capture_output=True, text=True)
 
6
  return result.stdout + "\n" + result.stderr
7
 
8
- iface = gr.Interface(fn=run_command, inputs="text", outputs="text")
9
- iface.launch()
 
 
 
1
  import subprocess
2
 
3
+ def run_gradio_inference():
4
+ # Run the gradio_inference.py script from the cloned repository
5
+ result = subprocess.run(['python', 'V-Express/gradio_inference.py'], capture_output=True, text=True)
6
  return result.stdout + "\n" + result.stderr
7
 
8
+ if __name__ == "__main__":
9
+ output = run_gradio_inference()
10
+ print(output)