azlaan428 commited on
Commit ·
653bc0e
1
Parent(s): f149ede
fix: SSL patch for PubMed, install deps, extract-table working
Browse files- app.py +2 -0
- aria_log.txt +0 -0
- retrieval/pubmed.py +2 -1
- sessions.json +0 -0
app.py
CHANGED
|
@@ -269,6 +269,8 @@ def extract_table():
|
|
| 269 |
table = run_table_extractor(question, synthesis, papers)
|
| 270 |
return jsonify({"table": table})
|
| 271 |
except Exception as e:
|
|
|
|
|
|
|
| 272 |
return jsonify({"error": str(e)}), 500
|
| 273 |
|
| 274 |
if __name__ == "__main__":
|
|
|
|
| 269 |
table = run_table_extractor(question, synthesis, papers)
|
| 270 |
return jsonify({"table": table})
|
| 271 |
except Exception as e:
|
| 272 |
+
import traceback
|
| 273 |
+
traceback.print_exc()
|
| 274 |
return jsonify({"error": str(e)}), 500
|
| 275 |
|
| 276 |
if __name__ == "__main__":
|
aria_log.txt
ADDED
|
Binary file (2.01 kB). View file
|
|
|
retrieval/pubmed.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
import re
|
|
|
|
| 2 |
from Bio import Entrez
|
| 3 |
-
|
| 4 |
Entrez.email = "azlaanmohammad66@gmail.com"
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
def parse_abstract_block(pmid, block):
|
|
|
|
| 1 |
import re
|
| 2 |
+
import ssl
|
| 3 |
from Bio import Entrez
|
|
|
|
| 4 |
Entrez.email = "azlaanmohammad66@gmail.com"
|
| 5 |
+
ssl._create_default_https_context = ssl._create_unverified_context
|
| 6 |
|
| 7 |
|
| 8 |
def parse_abstract_block(pmid, block):
|
sessions.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|