Skip to content

Commit

Permalink
MODIFIED: home route
Browse files Browse the repository at this point in the history
  • Loading branch information
AquibPy committed Apr 17, 2024
1 parent 95a8e8c commit bcb5e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class ResponseText(BaseModel):


@app.get("/", response_class=RedirectResponse)
def home():
return "/docs"
async def home():
return RedirectResponse("/docs")

@app.post("/invoice_extractor",description="This route extracts information from invoices based on provided images and prompts.")
async def gemini(image_file: UploadFile = File(...), prompt: str = Form(...)):
Expand Down

0 comments on commit bcb5e99

Please sign in to comment.