Skip to content

Commit

Permalink
fixed audiolm cannot run from local path bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhycheng614 committed Dec 11, 2024
1 parent 33f6bab commit c0d5fd4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nexa/cli/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,12 @@ def run_ggml_inference(args):
# from nexa.gguf.nexa_inference_tts import NexaTTSInference
# inference = NexaTTSInference(model_path=model_path, local_path=local_path, **kwargs)
elif run_type == "AudioLM":
from nexa.gguf.nexa_inference_audio_lm import NexaAudioLMInference
inference = NexaAudioLMInference(model_path=model_path, local_path=local_path, **kwargs)
if is_local_path:
from nexa.gguf.nexa_inference_audio_lm import NexaAudioLMInference
inference = NexaAudioLMInference(model_path=model_path, local_path=local_path, projector_local_path=projector_local_path, **kwargs)
else:
from nexa.gguf.nexa_inference_audio_lm import NexaAudioLMInference
inference = NexaAudioLMInference(model_path=model_path, local_path=local_path, **kwargs)
else:
print(f"Unknown task: {run_type}. Skipping inference.")
return
Expand Down

0 comments on commit c0d5fd4

Please sign in to comment.