nam_nguyenhoai_AI commited on
Commit
0d6a51b
1 Parent(s): fac95bf
Files changed (3) hide show
  1. algorithm.py +0 -1
  2. app.py +0 -6
  3. requirements.txt +2 -1
algorithm.py CHANGED
@@ -1,7 +1,6 @@
1
  import faiss
2
  from sklearn.metrics import pairwise_distances_argmin_min
3
  import random
4
- import numpy as np
5
  from utils import *
6
 
7
  def kmeans(number_of_clusters, features):
 
1
  import faiss
2
  from sklearn.metrics import pairwise_distances_argmin_min
3
  import random
 
4
  from utils import *
5
 
6
  def kmeans(number_of_clusters, features):
app.py CHANGED
@@ -2,13 +2,7 @@ import gradio as gr
2
  import cv2
3
  import os
4
  import tempfile
5
- from torchvision import transforms
6
- from torchvision.transforms import Compose
7
- import torch
8
  import numpy as np
9
- from PIL import Image
10
- import torch.nn.functional as F
11
- from transformers import pipeline, TimesformerModel, VideoMAEImageProcessor
12
  from utils import *
13
  from algorithm import *
14
 
 
2
  import cv2
3
  import os
4
  import tempfile
 
 
 
5
  import numpy as np
 
 
 
6
  from utils import *
7
  from algorithm import *
8
 
requirements.txt CHANGED
@@ -6,4 +6,5 @@ torchvision
6
  opencv-python
7
  huggingface_hub
8
  pytorchvideo==0.1.5
9
- spaces
 
 
6
  opencv-python
7
  huggingface_hub
8
  pytorchvideo==0.1.5
9
+ spaces
10
+ transformers