Skip to content

Commit

Permalink
use Orca type
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Aug 16, 2024
1 parent f085709 commit 786fdac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions demo/python/orca_demo_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@
Callable,
Optional,
Sequence,
Any,
)

import pvorca
import tiktoken
from pvorca import OrcaActivationLimitError, OrcaInvalidArgumentError
from pvorca import Orca, OrcaActivationLimitError, OrcaInvalidArgumentError
from pvspeaker import PvSpeaker

CUSTOM_PRON_PATTERN = r"\{(.*?\|.*?)\}"
Expand Down Expand Up @@ -72,7 +71,7 @@ class OrcaInput:

def __init__(
self,
orca: Any,
orca: Orca,
flush_audio_callback: Callable[[Sequence[int]], None],
play_audio_callback: Callable[[Sequence[int]], int],
num_tokens_per_second: int,
Expand Down

0 comments on commit 786fdac

Please sign in to comment.