prithivMLmods commited on
Commit
2c1e76a
·
verified ·
1 Parent(s): e9f1eff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -15,6 +15,7 @@ from transformers import (
15
  AutoProcessor,
16
  TextIteratorStreamer,
17
  )
 
18
  from gradio.themes import Soft
19
  from gradio.themes.utils import colors, fonts, sizes
20
 
@@ -27,6 +28,7 @@ except subprocess.CalledProcessError as e:
27
  print(f"Error installing flash-attn: {e}")
28
  print("Continuing without flash-attn.")
29
 
 
30
 
31
  colors.steel_blue = colors.Color(
32
  name="steel_blue",
 
15
  AutoProcessor,
16
  TextIteratorStreamer,
17
  )
18
+
19
  from gradio.themes import Soft
20
  from gradio.themes.utils import colors, fonts, sizes
21
 
 
28
  print(f"Error installing flash-attn: {e}")
29
  print("Continuing without flash-attn.")
30
 
31
+ import flash_attn_2_cuda as flash_attn_gpu
32
 
33
  colors.steel_blue = colors.Color(
34
  name="steel_blue",