Nicous commited on
Commit
ca6a221
·
verified ·
1 Parent(s): 8feb12a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -39,11 +39,11 @@ subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENT
39
  from huggingface_hub import snapshot_download
40
 
41
  # 下载整个模型文件夹到本地 ./llava-onevision-qwen2-7b-ov
42
- snapshot_download(
43
- repo_id="lmms-lab/llava-onevision-qwen2-7b-ov",
44
- local_dir="./llava-onevision-qwen2-7b-ov", # 指定本地存储目录
45
- ignore_patterns=["*.md", "*.txt"] # 可以忽略一些不必要的文件(可选)
46
- )
47
 
48
  from huggingface_hub import hf_hub_download
49
 
@@ -315,17 +315,17 @@ def extract_audio_from_video(video_path, audio_path=None):
315
  head = """
316
  <style>
317
  /* Submit按钮默认和悬停效果 */
318
- button.lg.secondary.svelte-5st68j {
319
  background-color: #ff9933 !important;
320
  transition: background-color 0.3s ease !important;
321
  }
322
 
323
- button.lg.secondary.svelte-5st68j:hover {
324
  background-color: #ff7777 !important; /* 悬停时颜色加深 */
325
  }
326
 
327
  /* 确保按钮文字始终清晰可见 */
328
- button.lg.secondary.svelte-5st68j span {
329
  color: white !important;
330
  }
331
 
 
39
  from huggingface_hub import snapshot_download
40
 
41
  # 下载整个模型文件夹到本地 ./llava-onevision-qwen2-7b-ov
42
+ # snapshot_download(
43
+ # repo_id="lmms-lab/llava-onevision-qwen2-7b-ov",
44
+ # local_dir="./llava-onevision-qwen2-7b-ov", # 指定本地存储目录
45
+ # ignore_patterns=["*.md", "*.txt"] # 可以忽略一些不必要的文件(可选)
46
+ # )
47
 
48
  from huggingface_hub import hf_hub_download
49
 
 
315
  head = """
316
  <style>
317
  /* Submit按钮默认和悬停效果 */
318
+ button.lg.secondary.svelte-1gz44hr {
319
  background-color: #ff9933 !important;
320
  transition: background-color 0.3s ease !important;
321
  }
322
 
323
+ button.lg.secondary.svelte-1gz44hr:hover {
324
  background-color: #ff7777 !important; /* 悬停时颜色加深 */
325
  }
326
 
327
  /* 确保按钮文字始终清晰可见 */
328
+ button.lg.secondary.svelte-1gz44hr span {
329
  color: white !important;
330
  }
331