christopher commited on
Commit
95f7578
·
1 Parent(s): 27c3646
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from typing import Dict, Optional, List, Any
7
  import uuid
8
  from datetime import datetime
9
  from contextlib import asynccontextmanager
10
-
11
  from models.embedding import EmbeddingModel
12
  from models.summarization import SummarizationModel
13
  from models.nlp import NLPModel
@@ -128,7 +128,7 @@ async def not_found_exception_handler(request: Request, exc: HTTPException):
128
  async def create_job(request: PostRequest, background_tasks: BackgroundTasks):
129
  job_id = str(uuid.uuid4())
130
  logging.info(f"Creating new job {job_id} with request: {request.dict()}")
131
-
132
  jobs_db[job_id] = {
133
  "id": job_id,
134
  "status": "processing",
 
7
  import uuid
8
  from datetime import datetime
9
  from contextlib import asynccontextmanager
10
+ import asyncio
11
  from models.embedding import EmbeddingModel
12
  from models.summarization import SummarizationModel
13
  from models.nlp import NLPModel
 
128
  async def create_job(request: PostRequest, background_tasks: BackgroundTasks):
129
  job_id = str(uuid.uuid4())
130
  logging.info(f"Creating new job {job_id} with request: {request.dict()}")
131
+ print(asyncio.get_running_loop())
132
  jobs_db[job_id] = {
133
  "id": job_id,
134
  "status": "processing",