Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|