Kirubel Mehari commited on
Commit
c1a1d03
1 Parent(s): 6c969e9

Install sharp CLI at startup

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -5,6 +5,11 @@ import uuid
5
  import shutil
6
  import tempfile
7
 
 
 
 
 
 
8
  DESCRIPTION = """
9
  # SHARP 路 3D from a Single Photo
10
  Upload any photo and get a **3D Gaussian Splat (.ply)** in seconds.
 
5
  import shutil
6
  import tempfile
7
 
8
+
9
+ import sys
10
+ import subprocess as _sp
11
+ _sp.run([sys.executable, '-m', 'pip', 'install', '--quiet', 'git+https://github.com/apple/ml-sharp.git'], check=True)
12
+
13
  DESCRIPTION = """
14
  # SHARP 路 3D from a Single Photo
15
  Upload any photo and get a **3D Gaussian Splat (.ply)** in seconds.