gokaygokay commited on
Commit
d7f29ce
1 Parent(s): 2f7ee0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,12 +1,17 @@
1
  import gradio as gr
2
  from transformers import AutoProcessor, AutoModelForCausalLM
3
- from PIL import Image
4
  import requests
5
  import copy
 
 
 
6
  import matplotlib.pyplot as plt
7
  import matplotlib.patches as patches
 
8
  import random
9
  import numpy as np
 
10
  import subprocess
11
  subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
12
 
 
1
  import gradio as gr
2
  from transformers import AutoProcessor, AutoModelForCausalLM
3
+
4
  import requests
5
  import copy
6
+
7
+ from PIL import Image
8
+ import io
9
  import matplotlib.pyplot as plt
10
  import matplotlib.patches as patches
11
+
12
  import random
13
  import numpy as np
14
+
15
  import subprocess
16
  subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
17