Skip to content

Commit

Permalink
Update subgen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
McCloudS authored Jan 28, 2024
1 parent 5be7068 commit 516f58d
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions subgen/subgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,13 @@
from array import array
from typing import BinaryIO, Union, Any
import random

# List of packages to install
packages_to_install = [
'numpy',
'stable-ts',
'fastapi',
'requests',
'faster-whisper',
'uvicorn',
'python-multipart',
'whisper',
# Add more packages as needed
]

for package in packages_to_install:
print(f"Installing {package}...")
try:
subprocess.run(['pip3', 'install', package], check=True)
print(f"{package} has been successfully installed.")
except subprocess.CalledProcessError as e:
print(f"Failed to install {package}: {e}")

from fastapi import FastAPI, File, UploadFile, Query, Header, Body, Form, Request
from fastapi.responses import StreamingResponse, RedirectResponse
import numpy as np
import stable_whisper
import requests
import av
import ffmpeg
import ffmpeg-python
import whisper

def convert_to_bool(in_bool):
Expand Down

0 comments on commit 516f58d

Please sign in to comment.