LLaMA-Factory-310P3/src/web_demo.py

12 lines
223 B
Python

from llmtuner import create_web_demo
def main():
demo = create_web_demo()
demo.queue()
demo.launch(server_name="0.0.0.0", server_port=7860, share=False, inbrowser=True)
if __name__ == "__main__":
main()