Spaces:
Runtime error
Runtime error
Commit
·
e5c45a4
1
Parent(s):
be8cb80
dont limit input length
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def predict(text, speaker):
|
|
| 30 |
|
| 31 |
# limit input length
|
| 32 |
input_ids = inputs["input_ids"]
|
| 33 |
-
input_ids = input_ids[..., : model.config.max_text_positions]
|
| 34 |
|
| 35 |
speaker_id = speaker[:3]
|
| 36 |
|
|
|
|
| 30 |
|
| 31 |
# limit input length
|
| 32 |
input_ids = inputs["input_ids"]
|
| 33 |
+
# input_ids = input_ids[..., : model.config.max_text_positions]
|
| 34 |
|
| 35 |
speaker_id = speaker[:3]
|
| 36 |
|