fffiloni commited on
Commit
8bd5821
β€’
1 Parent(s): b02177f

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +3 -1
gradio_app.py CHANGED
@@ -9,6 +9,9 @@ is_shared_ui = True if "fffiloni/Paints-UNDO" in os.environ['SPACE_ID'] else Fal
9
 
10
  is_gpu_associated = torch.cuda.is_available()
11
 
 
 
 
12
  if is_gpu_associated:
13
  gpu_info = getoutput('nvidia-smi')
14
  if("A10G" in gpu_info):
@@ -22,7 +25,6 @@ import functools
22
  import random
23
  import gradio as gr
24
  import numpy as np
25
-
26
  import wd14tagger
27
  import memory_management
28
  import uuid
 
9
 
10
  is_gpu_associated = torch.cuda.is_available()
11
 
12
+ import subprocess
13
+ from subprocess import getoutput
14
+
15
  if is_gpu_associated:
16
  gpu_info = getoutput('nvidia-smi')
17
  if("A10G" in gpu_info):
 
25
  import random
26
  import gradio as gr
27
  import numpy as np
 
28
  import wd14tagger
29
  import memory_management
30
  import uuid