Colab Test

This commit is contained in:
ebolam
2022-09-02 15:54:00 -04:00
parent bb0d44aa61
commit 33408bc467

View File

@@ -10311,7 +10311,6 @@ for schema in config_endpoint_schemas:
#==================================================================# #==================================================================#
# Final startup commands to launch Flask app # Final startup commands to launch Flask app
#==================================================================# #==================================================================#
@app.before_first_request
def startup(): def startup():
if koboldai_vars.model == "" or koboldai_vars.model is None: if koboldai_vars.model == "" or koboldai_vars.model is None:
koboldai_vars.model = "ReadOnly" koboldai_vars.model = "ReadOnly"
@@ -10323,6 +10322,7 @@ if __name__ == "__main__":
general_startup() general_startup()
patch_transformers() patch_transformers()
startup()
# Start Flask/SocketIO (Blocking, so this must be last method!) # Start Flask/SocketIO (Blocking, so this must be last method!)
port = args.port if "port" in args and args.port is not None else 5000 port = args.port if "port" in args and args.port is not None else 5000
koboldai_settings.port = port koboldai_settings.port = port