MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS-TTS-Nano / create

Method create

app.py:421–426  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

419 self._jobs: dict[str, StreamingJob] = {}
420
421 def create(self) -> StreamingJob:
422 stream_id = f"stream-{int(time.time() * 1000)}-{uuid.uuid4().hex[:8]}"
423 job = StreamingJob(stream_id=stream_id)
424 with self._lock:
425 self._jobs[stream_id] = job
426 return job
427
428 def get(self, stream_id: str) -> StreamingJob | None:
429 with self._lock:

Callers 1

generate_stream_startFunction · 0.80

Calls 1

StreamingJobClass · 0.85

Tested by

no test coverage detected