Spaces:
Running
Running
Download app_gemini.py from akhaliq/anycoder: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/spaces/akhaliq/anycoder/resolve/3f9cf44627ce6ec0124dc70417ca2f5bf7d413ef/app_gemini.py
- Command line
-
hf download hf://spaces/akhaliq/anycoder@3f9cf44627ce6ec0124dc70417ca2f5bf7d413ef/app_gemini.py
-
curl -L -o app_gemini.py https://huggingface.co/spaces/akhaliq/anycoder/resolve/3f9cf44627ce6ec0124dc70417ca2f5bf7d413ef/app_gemini.py
401 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" | |
| ], | |
| default_model="gemini-exp-1121", | |
| src=gemini_gradio.registry, | |
| accept_token=not os.getenv("GEMINI_API_KEY"), | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |