Skip to content

Commit

Permalink
Fixed the message and status code;
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjan-stha committed Oct 15, 2024
1 parent b7c5e23 commit 7e59990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import List, Optional, Union

from dotenv import load_dotenv
from fastapi import FastAPI
from fastapi import FastAPI, Response, status
from pydantic import BaseModel

from embedding_models import (
Expand Down Expand Up @@ -37,7 +37,7 @@ class RequestSchemaForEmbeddings(BaseModel):

@app.get("/")
async def home():
return "Embedding handler using models for texts", 200
return Response(content="Embedding handler using models for texts", status_code=status.HTTP_200_OK)


@app.post("/get_embeddings")
Expand Down

0 comments on commit 7e59990

Please # to comment.