nikigoli commited on
Commit
ee7b424
1 Parent(s): 8c88152

Added script to build custom prompter

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -21,16 +21,23 @@ from gradio_image_prompter import ImagePrompter
21
  import io
22
  from enum import Enum
23
  import os
 
24
  os.environ["GRADIO_TEMP_DIR"] = os.path.join(os.getcwd(), "tmp")
25
 
26
  @spaces.GPU
27
  # Installing dependencies not in requirements.txt
28
  def install_add_dependencies():
29
- from subprocess import call
30
  with open('./startup.sh', 'rb') as file:
31
  script = file.read()
32
  return call(script, shell=True)
33
 
 
 
 
 
 
 
 
34
  #install_add_dependencies()
35
 
36
  class AppSteps(Enum):
 
21
  import io
22
  from enum import Enum
23
  import os
24
+ from subprocess import call
25
  os.environ["GRADIO_TEMP_DIR"] = os.path.join(os.getcwd(), "tmp")
26
 
27
  @spaces.GPU
28
  # Installing dependencies not in requirements.txt
29
  def install_add_dependencies():
 
30
  with open('./startup.sh', 'rb') as file:
31
  script = file.read()
32
  return call(script, shell=True)
33
 
34
+ def build_custom_prompter():
35
+ with open('./build_custom_prompter.sh', 'rb') as file:
36
+ script = file.read()
37
+ return call(script, shell=True)
38
+
39
+ build_custom_prompter()
40
+
41
  #install_add_dependencies()
42
 
43
  class AppSteps(Enum):