Spaces:
Running
Running
Download app_gemini_voice.py from akhaliq/anycoder: direct link, hf CLI and curl.
- Browser
- Download file 323 Bytes
-
https://huggingface.co/spaces/akhaliq/anycoder/resolve/27667016ab7b2f7e64382fc3d9e3e110ebfcbb47/app_gemini_voice.py
- Command line
-
hf download hf://spaces/akhaliq/anycoder@27667016ab7b2f7e64382fc3d9e3e110ebfcbb47/app_gemini_voice.py
-
curl -L -o app_gemini_voice.py https://huggingface.co/spaces/akhaliq/anycoder/resolve/27667016ab7b2f7e64382fc3d9e3e110ebfcbb47/app_gemini_voice.py
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() | |