multichatbot / app_gemini_voice.py
akhaliq's picture
akhaliq HF staff
update gemini voice to use gemini-gradio
d1eb1fb
raw
history blame contribute delete
323 Bytes
import os
import gemini_gradio
from utils import get_app
demo = get_app(
models=[
"gemini-2.0-flash-exp",
],
default_model="gemini-2.0-flash-exp",
src=gemini_gradio.registry,
accept_token=not os.getenv("GEMINI_API_KEY"),
enable_voice=True,
)
if __name__ == "__main__":
demo.launch()