Spaces:
Runtime error
Runtime error
Commit
·
c22d82f
1
Parent(s):
766fbfc
fix: try with subprocess
Browse files
app.py
CHANGED
@@ -1,14 +1,11 @@
|
|
1 |
import os
|
|
|
2 |
|
3 |
import gradio as gr
|
4 |
-
from text2room.generate_scene import main
|
5 |
-
from text2room.model.utils.opt import get_default_parser
|
6 |
|
7 |
|
8 |
def load_mesh(mesh_file_name):
|
9 |
-
|
10 |
-
args = parser.parse_args()
|
11 |
-
main(args)
|
12 |
search_files(".ply")
|
13 |
return mesh_file_name
|
14 |
|
|
|
1 |
import os
|
2 |
+
import subprocess
|
3 |
|
4 |
import gradio as gr
|
|
|
|
|
5 |
|
6 |
|
7 |
def load_mesh(mesh_file_name):
|
8 |
+
subprocess.run(["python", "text2room/generate_scene.py"])
|
|
|
|
|
9 |
search_files(".ply")
|
10 |
return mesh_file_name
|
11 |
|