Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import os
|
2 |
import time
|
3 |
import torch
|
@@ -6,7 +7,6 @@ import gradio as gr
|
|
6 |
from threading import Thread
|
7 |
from PIL import Image
|
8 |
import subprocess
|
9 |
-
import spaces
|
10 |
|
11 |
# Install flash-attn if not already installed
|
12 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
|
|
1 |
+
import spaces
|
2 |
import os
|
3 |
import time
|
4 |
import torch
|
|
|
7 |
from threading import Thread
|
8 |
from PIL import Image
|
9 |
import subprocess
|
|
|
10 |
|
11 |
# Install flash-attn if not already installed
|
12 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|