Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,12 @@ print(torch.cuda.is_available())
|
|
6 |
|
7 |
import os, subprocess
|
8 |
import uuid, tempfile
|
|
|
9 |
|
10 |
env_list = os.environ['PATH'].split(':')
|
11 |
env_list.append('/usr/local/cuda/bin')
|
12 |
os.environ['PATH'] = ':'.join(env_list)
|
|
|
13 |
|
14 |
import gradio as gr
|
15 |
from huggingface_hub import snapshot_download
|
|
|
6 |
|
7 |
import os, subprocess
|
8 |
import uuid, tempfile
|
9 |
+
from glob import glob
|
10 |
|
11 |
env_list = os.environ['PATH'].split(':')
|
12 |
env_list.append('/usr/local/cuda/bin')
|
13 |
os.environ['PATH'] = ':'.join(env_list)
|
14 |
+
os.environ['TORCH_CUDA_ARCH_LIST'] = "8.6"
|
15 |
|
16 |
import gradio as gr
|
17 |
from huggingface_hub import snapshot_download
|