Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files355 unmodified lines35635735835936036136235936036136236336436536616 unmodified lines383384385386386387388389390391392393394395396355 unmodified lines return f"Error transcribing audio '{audio_path}': {str(e)}"
preferred_models = [ "gemini/gemini-2.5-flash", "gemini/gemini-2.5-flash-lite", "gemini/gemini-2.5-pro", "gemini/gemini-3-flash-preview", "gemini/gemini-3.8-flash", "gemini/gemini-3-flash-preview", "gemini/gemini-3.5-flash", "gemini/gemini-3.1-flash-lite-preview", "gemini/gemini-flash-latest", ]
available_api_models = set()16 unmodified lines matched = [m for m in preferred_models if m in available_api_models] extra = sorted( m for m in available_api_models if ("2.5" in m or "flash" in m) if ("flash" in m or "pro" in m) and "embedding" not in m and "image" not in m and "tts" not in m and "lyria" not in m and "nano-banana" not in m and "2.0" not in m and "2.5" not in m and m not in matched ) self.working_models = matched + extraapp.py+6-5