Spaces:
Running
on
Zero
Running
on
Zero
File size: 354 Bytes
3860419 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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()
|