mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
Tidy up connection logic (#90)
* Add code: * code * code --------- Co-authored-by: Freddy Boulton <freddyboulton@hf-freddy.local>
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
from functools import lru_cache
|
||||
from typing import Generator, Literal
|
||||
|
||||
import gradio as gr
|
||||
import numpy as np
|
||||
from fastrtc import (
|
||||
Stream,
|
||||
AdditionalOutputs,
|
||||
audio_to_float32,
|
||||
ReplyOnPause,
|
||||
Stream,
|
||||
audio_to_float32,
|
||||
get_twilio_turn_credentials,
|
||||
)
|
||||
from functools import lru_cache
|
||||
import gradio as gr
|
||||
from typing import Generator, Literal
|
||||
from numpy.typing import NDArray
|
||||
import numpy as np
|
||||
from moonshine_onnx import MoonshineOnnxModel, load_tokenizer
|
||||
from numpy.typing import NDArray
|
||||
|
||||
|
||||
@lru_cache(maxsize=None)
|
||||
|
||||
Reference in New Issue
Block a user