AurelioAguirre commited on
Commit
b688bec
·
1 Parent(s): f09a941

fixing pydantic issue v8

Browse files
Files changed (1) hide show
  1. main/main.py +10 -1
main/main.py CHANGED
@@ -62,4 +62,13 @@ def create_app():
62
  raise
63
 
64
  # Create the application instance
65
- app = create_app()
 
 
 
 
 
 
 
 
 
 
62
  raise
63
 
64
  # Create the application instance
65
+ app = create_app()
66
+
67
+
68
+ if __name__ == "__main__":
69
+ # If we run this directly with python, we can still use the old method
70
+ config = load_config()
71
+ port = config.get("server", {}).get("port", 8001)
72
+
73
+ # Get the server instance from our app and run it
74
+ app.parent.run(port=port) # assuming the LitServer instance is stored as parent