Skip to content

Commit

Permalink
Video detection problems
Browse files Browse the repository at this point in the history
Fixes #19
  • Loading branch information
atomashevic committed Aug 9, 2024
1 parent eeabe1f commit e33bd0e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ rsconnect/

# Notes folder
/notes/

# Playground folder
/playground/
6 changes: 3 additions & 3 deletions R/setup_modules.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ setup_modules <- function()
# Set necessary modules
modules <- c(
"accelerate==0.29.3", "llama-index==0.10.30", "nltk==3.8.1",
"opencv-python", "pandas==2.1.3", "pypdf==4.0.1",
"pytube==15.0.0", "pytz==2024.1", "qdrant-client==1.8.2",
"opencv-python", "pandas==2.1.3", "pypdf==4.0.1", "pytz==2024.1", "qdrant-client==1.8.2",
"sentencepiece==0.2.0", "sentence-transformers==2.7.0",
"tensorflow==2.14.1", "torch==2.1.1", "transformers==4.35.0"
"tensorflow==2.14.1", "torch==2.1.1", "transformers==4.35.0",
"pytubefix==6.9.2"
)

# Determine whether any modules need to be installed
Expand Down
7 changes: 1 addition & 6 deletions inst/python/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
import cv2
import numpy as np
import pandas as pd
from pytube import YouTube
from pytubefix import YouTube #19 Fixed pytube issue
from transformers import AutoProcessor, AutoModel
# import torch
# from torch import nn
# import torchvision.models as models
# from torchvision import transforms
import torch.nn.functional as F
# from PIL import Image
import time


Expand Down

0 comments on commit e33bd0e

Please sign in to comment.