Jiaqi-hkust commited on
Commit
d46c070
·
verified ·
1 Parent(s): 82fcfd5

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  import gradio as gr
2
  import os
3
  import torch
@@ -5,8 +8,7 @@ from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
5
  from qwen_vl_utils import process_vision_info
6
  import html
7
 
8
- import subprocess
9
- subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
10
 
11
  sys_prompt = """First output the the types of degradations in image briefly in <TYPE> <TYPE_END> tags,
12
  and then output what effects do these degradation have on the image in <INFLUENCE> <INFLUENCE_END> tags,
 
1
+ import subprocess
2
+ subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
3
+
4
  import gradio as gr
5
  import os
6
  import torch
 
8
  from qwen_vl_utils import process_vision_info
9
  import html
10
 
11
+
 
12
 
13
  sys_prompt = """First output the the types of degradations in image briefly in <TYPE> <TYPE_END> tags,
14
  and then output what effects do these degradation have on the image in <INFLUENCE> <INFLUENCE_END> tags,