Spaces:
Runtime error
Runtime error
patrickbdevaney
commited on
Commit
•
bbe15c5
1
Parent(s):
f3b6736
syntax fix
Browse files- api/main.py +1 -3
api/main.py
CHANGED
@@ -962,7 +962,6 @@ def create_app() -> FastAPI:
|
|
962 |
logger.info("FastAPI application created successfully")
|
963 |
return app
|
964 |
|
965 |
-
|
966 |
def run_server():
|
967 |
"""Run the API server"""
|
968 |
try:
|
@@ -974,8 +973,7 @@ def run_server():
|
|
974 |
asyncio.run(server.startup())
|
975 |
except Exception as e:
|
976 |
logger.error(f"Failed to start API: {str(e)}")
|
977 |
-
print(f"Error starting server: {str(e)}"
|
978 |
-
|
979 |
|
980 |
if __name__ == "__main__":
|
981 |
run_server()
|
|
|
962 |
logger.info("FastAPI application created successfully")
|
963 |
return app
|
964 |
|
|
|
965 |
def run_server():
|
966 |
"""Run the API server"""
|
967 |
try:
|
|
|
973 |
asyncio.run(server.startup())
|
974 |
except Exception as e:
|
975 |
logger.error(f"Failed to start API: {str(e)}")
|
976 |
+
print(f"Error starting server: {str(e)}") # <-- Fixed here
|
|
|
977 |
|
978 |
if __name__ == "__main__":
|
979 |
run_server()
|