Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,13 @@
|
|
1 |
import subprocess
|
2 |
|
3 |
-
def
|
|
|
|
|
|
|
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 =
|
10 |
print(output)
|
|
|
1 |
import subprocess
|
2 |
|
3 |
+
def setup_and_run():
|
4 |
+
# Run the setup script
|
5 |
+
subprocess.run(['bash', 'setup.sh'], check=True)
|
6 |
+
|
7 |
# Run the gradio_inference.py script from the cloned repository
|
8 |
result = subprocess.run(['python', 'V-Express/gradio_inference.py'], capture_output=True, text=True)
|
9 |
return result.stdout + "\n" + result.stderr
|
10 |
|
11 |
if __name__ == "__main__":
|
12 |
+
output = setup_and_run()
|
13 |
print(output)
|