feifeifeiliu commited on
Commit
0c1c3c2
·
1 Parent(s): 3ed0c2e

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -35
app.py CHANGED
@@ -2,43 +2,12 @@ import gradio as gr
2
  import os
3
  import sys
4
  # import OpenGL.GL as gl
5
-
6
  os.environ["PYOPENGL_PLATFORM"] = "egl"
7
  os.environ["MESA_GL_VERSION_OVERRIDE"] = "4.1"
8
  os.system('pip install /home/user/app/pyrender')
9
  sys.path.append('/home/user/app/pyrender')
10
  # os.system(r"apt-get install -y python-opengl libosmesa6")
11
  sys.path.append(os.getcwd())
12
-
13
- # os.environ["PYOPENGL_PLATFORM"] = "osmesa"
14
- # # os.environ["MESA_GL_VERSION_OVERRIDE"] = "4.1"
15
- # os.system('pip install /home/user/app/pyrender')
16
-
17
- # os.system('conda install -c menpo osmesa')
18
- # install mesa
19
- # os.system("apt update")
20
- # os.system("tar xfv mesa-18.3.3.tar.gz")
21
- # os.system("cd mesa-18.3.3")
22
- #
23
- # os.system("./mesa-18.3.3/configure --prefix=/usr/local \
24
- # --enable-opengl --disable-gles1 --disable-gles2 \
25
- # --disable-va --disable-xvmc --disable-vdpau \
26
- # --enable-shared-glapi \
27
- # --disable-texture-float \
28
- # --enable-gallium-llvm --enable-llvm-shared-libs \
29
- # --with-gallium-drivers=swrast,swr \
30
- # --disable-dri --with-dri-drivers= \
31
- # --disable-egl --with-egl-platforms= --disable-gbm \
32
- # --disable-glx \
33
- # --disable-osmesa --enable-gallium-osmesa \
34
- # ac_cv_path_LLVM_CONFIG=llvm-config-6.0")
35
- #
36
- # os.system("cd mesa-18.3.3 && make -j8 && make install")
37
- # os.system("cd ../")
38
-
39
- # sys.path.append('/home/user/app/pyrender')
40
- # # os.system(r"apt-get install -y python-opengl libosmesa6")
41
- # sys.path.append(os.getcwd())
42
  # os.system(r"cd mesh-master")
43
  # os.system(r"tar -jxvf boost_1_79_0.tar.bz2")
44
  # os.system(r"mv boost_1_79_0 boost")
@@ -326,7 +295,4 @@ def main():
326
 
327
 
328
  if __name__ == '__main__':
329
- main()
330
-
331
-
332
-
 
2
  import os
3
  import sys
4
  # import OpenGL.GL as gl
 
5
  os.environ["PYOPENGL_PLATFORM"] = "egl"
6
  os.environ["MESA_GL_VERSION_OVERRIDE"] = "4.1"
7
  os.system('pip install /home/user/app/pyrender')
8
  sys.path.append('/home/user/app/pyrender')
9
  # os.system(r"apt-get install -y python-opengl libosmesa6")
10
  sys.path.append(os.getcwd())
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  # os.system(r"cd mesh-master")
12
  # os.system(r"tar -jxvf boost_1_79_0.tar.bz2")
13
  # os.system(r"mv boost_1_79_0 boost")
 
295
 
296
 
297
  if __name__ == '__main__':
298
+ main()