Download LLaMA-Factory/src/webui.py from LittleCxwx/CER_SRLM: direct link, hf CLI and curl.
- Browser
- Download file 354 Bytes
-
https://huggingface.co/LittleCxwx/CER_SRLM/resolve/main/LLaMA-Factory/src/webui.py
- Command line
-
hf download hf://LittleCxwx/CER_SRLM/LLaMA-Factory/src/webui.py
-
curl -L -o webui.py https://huggingface.co/LittleCxwx/CER_SRLM/resolve/main/LLaMA-Factory/src/webui.py
354 Bytes
| import os | |
| from llamafactory.webui.interface import create_ui | |
| def main(): | |
| gradio_share = os.environ.get("GRADIO_SHARE", "0").lower() in ["true", "1"] | |
| server_name = os.environ.get("GRADIO_SERVER_NAME", "0.0.0.0") | |
| create_ui().queue().launch(share=gradio_share, server_name=server_name, inbrowser=True) | |
| if __name__ == "__main__": | |
| main() | |