pvanand commited on
Commit
31f86bc
·
verified ·
1 Parent(s): f4496e7

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
main.py CHANGED
@@ -31,10 +31,10 @@ async def verify_api_key(api_key: str = Security(api_key_header)):
31
  raise HTTPException(status_code=403, detail="Could not validate credentials")
32
  return api_key
33
 
34
- @app.get("/test")
35
- async def test(api_key: str = Depends(verify_api_key)):
36
- result = await simple_crawl("https://www.nbcnews.com/business")
37
- return {"markdown": result.markdown}
38
 
39
  from fastapi.middleware.cors import CORSMiddleware
40
 
 
31
  raise HTTPException(status_code=403, detail="Could not validate credentials")
32
  return api_key
33
 
34
+ # @app.get("/test")
35
+ # async def test(api_key: str = Depends(verify_api_key)):
36
+ # result = await simple_crawl("https://www.nbcnews.com/business")
37
+ # return {"markdown": result.markdown}
38
 
39
  from fastapi.middleware.cors import CORSMiddleware
40