MCPcopy Create free account
hub / github.com/AlayaLab/Hive / inference

Function inference

app.py:255–264  ·  view source on GitHub ↗
(audio, text, model_choice)

Source from the content-addressed store, hash-verified

253
254
255def inference(audio, text, model_choice):
256 if audio is None:
257 raise gr.Error("Please upload an audio file / 请上传音频文件")
258 if not text or not text.strip():
259 raise gr.Error("Please enter a text query / 请输入文本描述")
260
261 if model_choice == "AudioSep-hive":
262 return separate_audiosep(audio, text)
263 else:
264 return separate_flowsep(audio, text)
265
266
267if spaces is not None:

Callers 1

inference_entryFunction · 0.85

Calls 2

separate_audiosepFunction · 0.85
separate_flowsepFunction · 0.85

Tested by

no test coverage detected