Spaces:
Runtime error
Runtime error
Commit ·
91182c7
1
Parent(s): d16f985
refactor: update FastAPI application initialization
Browse files- Minor adjustments to transformation engine initialization
- Improve application startup configuration
app.py
CHANGED
|
@@ -49,7 +49,7 @@ app.add_middleware(
|
|
| 49 |
)
|
| 50 |
|
| 51 |
# Initialize transformation engine
|
| 52 |
-
transformation_engine = TransformationEngine(
|
| 53 |
|
| 54 |
|
| 55 |
# Pydantic models for API
|
|
@@ -489,7 +489,7 @@ async def shutdown_event():
|
|
| 489 |
if __name__ == "__main__":
|
| 490 |
uvicorn.run(
|
| 491 |
"app:app",
|
| 492 |
-
host="
|
| 493 |
port=8000,
|
| 494 |
reload=True,
|
| 495 |
log_level="info"
|
|
|
|
| 49 |
)
|
| 50 |
|
| 51 |
# Initialize transformation engine
|
| 52 |
+
transformation_engine = TransformationEngine()
|
| 53 |
|
| 54 |
|
| 55 |
# Pydantic models for API
|
|
|
|
| 489 |
if __name__ == "__main__":
|
| 490 |
uvicorn.run(
|
| 491 |
"app:app",
|
| 492 |
+
host="127.0.0.1",
|
| 493 |
port=8000,
|
| 494 |
reload=True,
|
| 495 |
log_level="info"
|