Spaces:
Runtime error
Runtime error
quyip
commited on
Commit
·
0dcccf6
1
Parent(s):
ec0efe8
fix
Browse files
main.py
CHANGED
@@ -43,13 +43,9 @@ async def summaries(request: SummariesReq):
|
|
43 |
if request.key != KEY:
|
44 |
return 'Unauthorized'
|
45 |
result = []
|
46 |
-
print('==============1')
|
47 |
-
print(request.pages)
|
48 |
for page in request.pages:
|
49 |
-
print('==============2')
|
50 |
-
print(page)
|
51 |
try:
|
52 |
-
result.append(await summarize(page
|
53 |
-
except:
|
54 |
-
|
55 |
return result
|
|
|
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)
|
51 |
return result
|