jyseo commited on
Commit
f251a39
1 Parent(s): df366bf

dependency fixed

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  import torch
2
  import argparse
3
  import gradio as gr
@@ -12,16 +22,6 @@ from pc_project import point_e_gradio
12
  import numpy as np
13
  import plotly.graph_objs as go
14
  from my.utils.seed import seed_everything
15
- import os
16
- import wget
17
- import subprocess
18
-
19
- if os.getenv('SYSTEM') == 'spaces':
20
- subprocess.run(
21
- 'pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html'.split())
22
- subprocess.run(
23
- 'pip install https://download.is.tue.mpg.de/icon/HF/pytorch3d-0.7.0-cp38-cp38-linux_x86_64.whl'.split())
24
-
25
 
26
 
27
  SHARED_UI_WARNING = f'''### [NOTE] Training may be very slow in this shared UI.
 
1
+ import os
2
+ import wget
3
+ import subprocess
4
+
5
+ if os.getenv('SYSTEM') == 'spaces':
6
+ subprocess.run(
7
+ 'pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html'.split())
8
+ subprocess.run(
9
+ 'pip install https://download.is.tue.mpg.de/icon/HF/pytorch3d-0.7.0-cp38-cp38-linux_x86_64.whl'.split())
10
+
11
  import torch
12
  import argparse
13
  import gradio as gr
 
22
  import numpy as np
23
  import plotly.graph_objs as go
24
  from my.utils.seed import seed_everything
 
 
 
 
 
 
 
 
 
 
25
 
26
 
27
  SHARED_UI_WARNING = f'''### [NOTE] Training may be very slow in this shared UI.