pan-yl commited on
Commit
9be95d4
1 Parent(s): 705984e
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -1,5 +1,12 @@
1
  # -*- coding: utf-8 -*-
2
  # Copyright (c) Alibaba, Inc. and its affiliates.
 
 
 
 
 
 
 
3
  import argparse
4
  import base64
5
  import copy
@@ -27,13 +34,6 @@ from scepter.modules.utils.directory import get_md5
27
  from scepter.modules.utils.file_system import FS
28
  from scepter.studio.utils.env import init_env
29
 
30
- import os
31
- import shlex
32
- import subprocess
33
-
34
- subprocess.run(shlex.split('pip install flash-attn --no-build-isolation'), env=os.environ | {'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"})
35
- subprocess.run('pip install gradio==4.44.1', env=os.environ)
36
-
37
  from infer import ACEInference
38
  from example import get_examples
39
  from utils import load_image
 
1
  # -*- coding: utf-8 -*-
2
  # Copyright (c) Alibaba, Inc. and its affiliates.
3
+ import os
4
+ import shlex
5
+ import subprocess
6
+
7
+ subprocess.run('pip install gradio==4.44.1', env=os.environ)
8
+ subprocess.run(shlex.split('pip install flash-attn --no-build-isolation'), env=os.environ | {'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"})
9
+
10
  import argparse
11
  import base64
12
  import copy
 
34
  from scepter.modules.utils.file_system import FS
35
  from scepter.studio.utils.env import init_env
36
 
 
 
 
 
 
 
 
37
  from infer import ACEInference
38
  from example import get_examples
39
  from utils import load_image