Download app_gemini_coder.py from CodeByBB/anycoder: direct link, hf CLI and curl.
- Browser
- Download file 722 Bytes
-
https://huggingface.co/spaces/CodeByBB/anycoder/resolve/3f21bfb9549b59128f9748d4ca63f01cc0fdfada/app_gemini_coder.py
- Command line
-
hf download hf://spaces/CodeByBB/anycoder@3f21bfb9549b59128f9748d4ca63f01cc0fdfada/app_gemini_coder.py
-
curl -L -o app_gemini_coder.py https://huggingface.co/spaces/CodeByBB/anycoder/resolve/3f21bfb9549b59128f9748d4ca63f01cc0fdfada/app_gemini_coder.py
722 Bytes
| import ai_gradio | |
| from utils_ai_gradio import get_app | |
| # Get the Gemini models but keep their full names for loading | |
| GEMINI_MODELS_FULL = [k for k in ai_gradio.registry if k.startswith("gemini:")] | |
| # Create display names without the prefix | |
| GEMINI_MODELS_DISPLAY = [k.replace("gemini:", "") for k in GEMINI_MODELS_FULL] | |
| # Create and launch the interface using get_app utility | |
| demo = get_app( | |
| models=GEMINI_MODELS_FULL, # Use the full names with prefix | |
| default_model=GEMINI_MODELS_FULL[-1], | |
| dropdown_label="Select Gemini Model", | |
| choices=GEMINI_MODELS_DISPLAY, # Display names without prefix | |
| src=ai_gradio.registry, | |
| fill_height=True, | |
| coder=True, | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |