Spaces:
Sleeping
Sleeping
themeetjani
commited on
Commit
•
cf1b1ca
1
Parent(s):
6c6566f
Update pages/jury_records.py
Browse files- pages/jury_records.py +6 -9
pages/jury_records.py
CHANGED
@@ -78,15 +78,12 @@ def lang(context):
|
|
78 |
return answer_dict
|
79 |
|
80 |
def process(url):
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
return answer_dict
|
88 |
-
except:
|
89 |
-
return "Please try again"
|
90 |
if 'jury_records_dict' not in session_state:
|
91 |
session_state['jury_records_dict']= ""
|
92 |
|
|
|
78 |
return answer_dict
|
79 |
|
80 |
def process(url):
|
81 |
+
summary = summarize(url)
|
82 |
+
if summary == 'error':
|
83 |
+
return {"details":"","status":False}
|
84 |
+
else:
|
85 |
+
answer_dict = lang(summary)
|
86 |
+
return answer_dict
|
|
|
|
|
|
|
87 |
if 'jury_records_dict' not in session_state:
|
88 |
session_state['jury_records_dict']= ""
|
89 |
|