diff --git a/With these changes, you should now have Swagger UI integrated into your FastAPI application. You can access it by navigating to `http:/your-app-url/docs` in your web browser. b/With these changes, you should now have Swagger UI integrated into your FastAPI application. You can access it by navigating to `http:/your-app-url/docs` in your web browser. deleted file mode 100644 index e69de29..0000000 diff --git a/app.py b/app.py index 2c2036b..462b3e9 100644 --- a/app.py +++ b/app.py @@ -1,14 +1,15 @@ from fastapi import FastAPI, File, UploadFile import tempfile import os +from fastapi import FastAPI from fastapi.openapi.docs import get_swagger_ui_html # Assuming Celery is already set up and imported correctly in the project. from tasks import delete_temp_file # Import your Celery task here. app = FastAPI( - title="AI TIST API", - description="This is a simple API for AI TIST.", + title="AITist API", + description="This is a simple API for AI Tist.", version="1.0.0", docs_url="/docs", # Enable Swagger UI ) diff --git a/pyproject.toml b/pyproject.toml index 5238bce..d2d1092 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,11 +3,15 @@ name = "aitist" version = "0.1.0" description = "A new Python project managed by Poetry." authors = ["Timothy Farrell "] +package-mode = false [tool.poetry.dependencies] python = "^3.11" -fastapi = "^0.75.2" +fastapi = "^0.111.1" uvicorn = {extras = ["standard"], version = "^0.17.6"} +celery = "^5.4.0" +pydantic = "^2.8.2" +pyannote-audio = "^3.3.1" [build-system] requires = ["poetry-core>=1.0.0"]