PierreBrunelle commited on
Commit
f895f15
·
verified ·
1 Parent(s): b659fec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -42,11 +42,9 @@ def process_video(video_file, progress=gr.Progress()):
42
 
43
  progress(0.4, desc="Creating embedding index...")
44
  # Use the CLIP model for both text and image embedding
45
- clip_model = 'openai/clip-vit-base-patch32'
46
  frames_view.add_embedding_index(
47
  'frame',
48
- string_embed=clip_text.using(model_id=clip_model),
49
- image_embed=clip_image.using(model_id=clip_model)
50
  )
51
 
52
  progress(1.0, desc="Processing complete")
 
42
 
43
  progress(0.4, desc="Creating embedding index...")
44
  # Use the CLIP model for both text and image embedding
 
45
  frames_view.add_embedding_index(
46
  'frame',
47
+ embedding=clip.using(model_id='openai/clip-vit-base-patch32')
 
48
  )
49
 
50
  progress(1.0, desc="Processing complete")