Skip to content

Commit

Permalink
initial prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Thuillier authored and Victor Thuillier committed Nov 2, 2023
1 parent 69fc459 commit 2f38419
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def predict(
language: str = Input(
description="ISO code of the language spoken in the audio, specify None to perform language detection",
default=None),
initial_prompt: str = Input(
description="Optional text to provide as a prompt for the first window",
default=None),
batch_size: int = Input(
description="Parallelization of input audio transcription",
default=64),
Expand All @@ -49,6 +52,7 @@ def predict(
with torch.inference_mode():
asr_options = {
"temperatures": [temperature],
"initial_prompt": initial_prompt
}

start_time = time.time_ns() / 1e6
Expand Down

0 comments on commit 2f38419

Please sign in to comment.