Mar2Ding commited on
Commit
a7046e3
·
verified ·
1 Parent(s): ebe0ad8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -7,7 +7,13 @@ import spaces
7
  # command = ["python", "setup.py", "build_ext", "--inplace"]
8
  command = ["pip", "install", "--no-build-isolation", "-e", "."]
9
  # Execute the command
10
- result = subprocess.run(command, capture_output=True, text=True)
 
 
 
 
 
 
11
 
12
  css="""
13
  div#component-18, div#component-25, div#component-35, div#component-41{
 
7
  # command = ["python", "setup.py", "build_ext", "--inplace"]
8
  command = ["pip", "install", "--no-build-isolation", "-e", "."]
9
  # Execute the command
10
+
11
+ @spaces.GPU(duration=120)
12
+ def run_install(command):
13
+ result = subprocess.run(command, capture_output=True, text=True)
14
+ return result
15
+
16
+ result = run_install(command)
17
 
18
  css="""
19
  div#component-18, div#component-25, div#component-35, div#component-41{