robinhad commited on
Commit
40b6bb8
1 Parent(s): 65df6b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ async def verify_token(token: str = Depends(api_key_query)):
74
  raise HTTPException(status_code=401, detail={"message": "Token is invalid"})
75
  return token
76
 
77
-
78
  @app.post("/translate/", response_model=TranslationResponse)
79
  async def translate(
80
  request: Request,
 
74
  raise HTTPException(status_code=401, detail={"message": "Token is invalid"})
75
  return token
76
 
77
+ @app.get("/translate/", response_model=TranslationResponse)
78
  @app.post("/translate/", response_model=TranslationResponse)
79
  async def translate(
80
  request: Request,