robinhad commited on
Commit
a1bb9c9
·
verified ·
1 Parent(s): 535fb22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -69,7 +69,8 @@ def translate_text(text: List[str], source_lang: str, target_lang: str) -> List[
69
 
70
  async def verify_token(token: str = Depends(api_key_query)):
71
  if not token:
72
- raise HTTPException(status_code=401, detail={"message": "Token is missing"})
 
73
  try:
74
  pass # disable temporarily #jwt.decode(token, SECRET_KEY, algorithms=["HS256"])
75
  except:
 
69
 
70
  async def verify_token(token: str = Depends(api_key_query)):
71
  if not token:
72
+ return test123
73
+ #raise HTTPException(status_code=401, detail={"message": "Token is missing"})
74
  try:
75
  pass # disable temporarily #jwt.decode(token, SECRET_KEY, algorithms=["HS256"])
76
  except: