move to src
This commit is contained in:
parent
5523b51fd7
commit
fba37eba0a
4 changed files with 3 additions and 2 deletions
|
|
@ -311,7 +311,7 @@ class VACOnlineASRProcessor(OnlineASRProcessor):
|
|||
import torch
|
||||
|
||||
model, _ = torch.hub.load(repo_or_dir="snakers4/silero-vad", model="silero_vad")
|
||||
from silero_vad_iterator import FixedVADIterator
|
||||
from src.whisper_streaming.silero_vad_iterator import FixedVADIterator
|
||||
|
||||
self.vac = FixedVADIterator(
|
||||
model
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@ from fastapi import FastAPI, WebSocket, WebSocketDisconnect
|
|||
from fastapi.responses import HTMLResponse
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
from whisper_online import backend_factory, online_factory, add_shared_args
|
||||
from src.whisper_streaming.whisper_online import backend_factory, online_factory, add_shared_args
|
||||
|
||||
app = FastAPI()
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
|
|
|
|||
Loading…
Reference in a new issue