Download scripts/run_web_gui.py from kings1/Nova: direct link, hf CLI and curl.
- Browser
- Download file 981 Bytes
-
https://huggingface.co/kings1/Nova/resolve/main/scripts/run_web_gui.py
- Command line
-
hf download hf://kings1/Nova/scripts/run_web_gui.py
-
curl -L -o run_web_gui.py https://huggingface.co/kings1/Nova/resolve/main/scripts/run_web_gui.py
981 Bytes
| """ | |
| Launcher Script for Nova 1.0 Web GUI Server | |
| """ | |
| import os | |
| import sys | |
| import argparse | |
| # Add project root to sys.path | |
| sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) | |
| from web.app import app, load_nova1_model | |
| def main(): | |
| parser = argparse.ArgumentParser(description="Launch Nova 1.0 Web GUI") | |
| parser.add_argument("--host", type=str, default="0.0.0.0", help="Host address to bind") | |
| parser.add_argument("--port", type=int, default=5000, help="Port number") | |
| args = parser.parse_args() | |
| print(f"Loading Nova 1.0 model checkpoint and tokenizer...") | |
| load_nova1_model() | |
| print(f"\n=======================================================") | |
| print(f"๐ Nova 1.0 Web GUI is live!") | |
| print(f"๐ Open in browser: http://localhost:{args.port}") | |
| print(f"=======================================================\n") | |
| app.run(host=args.host, port=args.port, debug=False) | |
| if __name__ == "__main__": | |
| main() | |