Spaces:
Build error
Build error
Download components/patch_generation.py from hugging2021/Code-Repair-w-LLMs: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/spaces/hugging2021/Code-Repair-w-LLMs/resolve/main/components/patch_generation.py
- Command line
-
hf download hf://spaces/hugging2021/Code-Repair-w-LLMs/components/patch_generation.py
-
curl -L -o patch_generation.py https://huggingface.co/spaces/hugging2021/Code-Repair-w-LLMs/resolve/main/components/patch_generation.py
375 Bytes
| import gradio as gr | |
| from components.model_selection import create_model_selection_dropdown | |
| def create_patch_generation_tab(choices): | |
| with gr.Column(): | |
| create_model_selection_dropdown(choices) | |
| gr.Textbox(label="Output", interactive=False) | |
| gr.Code(label="File Contents", language="python", interactive=False, elem_classes=["fixed-height"]) | |