Update subgen.py

This commit is contained in:
McCloudS
2023-10-31 10:14:01 -06:00
committed by GitHub
parent 52f42556c2
commit 942c11bc0e

View File

@@ -26,6 +26,14 @@ packages_to_install = [
# 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