Spaces:
Runtime error
Runtime error
quyip
commited on
Commit
·
ed70e07
1
Parent(s):
0dcccf6
fix
Browse files
main.py
CHANGED
@@ -43,8 +43,10 @@ async def summaries(request: SummariesReq):
|
|
43 |
if request.key != KEY:
|
44 |
return 'Unauthorized'
|
45 |
result = []
|
|
|
46 |
for page in request.pages:
|
47 |
try:
|
|
|
48 |
result.append(await summarize(page['id'], page['text']))
|
49 |
except Exception as e:
|
50 |
print(e)
|
|
|
43 |
if request.key != KEY:
|
44 |
return 'Unauthorized'
|
45 |
result = []
|
46 |
+
print('process pages: ' + len(request.pages))
|
47 |
for page in request.pages:
|
48 |
try:
|
49 |
+
print(page['id'])
|
50 |
result.append(await summarize(page['id'], page['text']))
|
51 |
except Exception as e:
|
52 |
print(e)
|