Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
cc0a32f
1
Parent(s):
107b307
fix bug
Browse files
utils/__pycache__/interface.cpython-310.pyc
CHANGED
|
Binary files a/utils/__pycache__/interface.cpython-310.pyc and b/utils/__pycache__/interface.cpython-310.pyc differ
|
|
|
utils/interface.py
CHANGED
|
@@ -27,7 +27,7 @@ class Inference:
|
|
| 27 |
self.device = device
|
| 28 |
self.processor = AutoProcessor.from_pretrained(
|
| 29 |
model_path,
|
| 30 |
-
codec_path=codec_path if codec_path else "fnlp/MOSS-Speech
|
| 31 |
device=self.device,
|
| 32 |
trust_remote_code=True,
|
| 33 |
)
|
|
@@ -67,7 +67,7 @@ class Inference:
|
|
| 67 |
if len(output_modalities) != 1:
|
| 68 |
raise ValueError("Expected exactly one output modality based on task.")
|
| 69 |
|
| 70 |
-
inputs = self.processor(full_conversation, output_modalities)
|
| 71 |
|
| 72 |
stopping_criteria = [
|
| 73 |
MIMOStopper(self.processor.tokenizer.pad_token_id),
|
|
|
|
| 27 |
self.device = device
|
| 28 |
self.processor = AutoProcessor.from_pretrained(
|
| 29 |
model_path,
|
| 30 |
+
codec_path=codec_path if codec_path else "fnlp/MOSS-Speech",
|
| 31 |
device=self.device,
|
| 32 |
trust_remote_code=True,
|
| 33 |
)
|
|
|
|
| 67 |
if len(output_modalities) != 1:
|
| 68 |
raise ValueError("Expected exactly one output modality based on task.")
|
| 69 |
|
| 70 |
+
inputs = self.processor([full_conversation], output_modalities)
|
| 71 |
|
| 72 |
stopping_criteria = [
|
| 73 |
MIMOStopper(self.processor.tokenizer.pad_token_id),
|