Download app_gemini.py from CodeByBB/anycoder: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/spaces/CodeByBB/anycoder/resolve/2e1c19dedccf6bfeeb433d6626b1293533b14d9e/app_gemini.py
- Command line
-
hf download hf://spaces/CodeByBB/anycoder@2e1c19dedccf6bfeeb433d6626b1293533b14d9e/app_gemini.py
-
curl -L -o app_gemini.py https://huggingface.co/spaces/CodeByBB/anycoder/resolve/2e1c19dedccf6bfeeb433d6626b1293533b14d9e/app_gemini.py
526 Bytes
| import os | |
| import gemini_gradio | |
| from utils import get_app | |
| demo = get_app( | |
| models=[ | |
| "gemini-1.5-flash", | |
| "gemini-1.5-flash-8b", | |
| "gemini-1.5-pro", | |
| "gemini-exp-1114", | |
| "gemini-exp-1121", | |
| "gemini-exp-1206", | |
| "gemini-2.0-flash-exp", | |
| "gemini-2.0-flash-thinking-exp-1219", | |
| ], | |
| default_model="gemini-2.0-flash-thinking-exp-1219", | |
| src=gemini_gradio.registry, | |
| accept_token=not os.getenv("GEMINI_API_KEY"), | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |