fix: Update default model to gemini-2.5-pro
This commit is contained in:
parent
0262f2f982
commit
766340283d
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ def send_tg(msg):
|
|||
except Exception as e:
|
||||
print(f"Failed to send Telegram message: {e}", flush=True)
|
||||
|
||||
def transcribe_audio(audio_path, output_prefix, model_name="gemini-1.5-pro"):
|
||||
def transcribe_audio(audio_path, output_prefix, model_name="gemini-2.5-pro"):
|
||||
if not os.path.exists(audio_path):
|
||||
print(f"Error: File not found: {audio_path}", flush=True)
|
||||
sys.exit(1)
|
||||
|
|
@ -107,6 +107,6 @@ if __name__ == "__main__":
|
|||
|
||||
audio_path = sys.argv[1]
|
||||
output_prefix = sys.argv[2]
|
||||
model_name = sys.argv[3] if len(sys.argv) > 3 else "gemini-1.5-pro"
|
||||
model_name = sys.argv[3] if len(sys.argv) > 3 else "gemini-2.5-pro"
|
||||
|
||||
transcribe_audio(audio_path, output_prefix, model_name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue