Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
import subprocess
|
| 3 |
|
| 4 |
-
def
|
| 5 |
-
|
|
|
|
| 6 |
return result.stdout + "\n" + result.stderr
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
| 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)
|