Spaces:
Runtime error
Runtime error
quyip
commited on
Commit
·
51a46da
1
Parent(s):
fddef45
fix
Browse files
main.py
CHANGED
@@ -17,7 +17,7 @@ async def root():
|
|
17 |
|
18 |
@app.post("/summary/")
|
19 |
async def summary(request: SummaryReq):
|
20 |
-
if request.key !=
|
21 |
return 'Unauthorized'
|
22 |
return summarize(request.id, request.text)
|
23 |
|
|
|
17 |
|
18 |
@app.post("/summary/")
|
19 |
async def summary(request: SummaryReq):
|
20 |
+
if request.key != os.environ.get("AccessKey"):
|
21 |
return 'Unauthorized'
|
22 |
return summarize(request.id, request.text)
|
23 |
|