How arijit-006/ai-scientific-research-analyzer works
This is a Streamlit research-paper analyzer: a user uploads a PDF or JPG/JPEG, the app selects an extraction path, sends readable text to Gemini, and displays the generated summary, keywords, results, and methods. The supplied source implements the app in p2.py, while the README describes app.py; the graph follows the actual tree and sampled source. The workflow is well supported, though all application responsibilities reside in one file, so nodes represent distinct functions rather than separate modules.
Main entry points: p2.py Image OCR
Components 13
Upload and display
- Streamlit interface
p2.py - File type routing
p2.py - Results display
p2.py
Text extraction
- PDF extraction
p2.py - pdfplumber
- Image OCR
p2.py - Pillow image loading
- Tesseract OCR
- Extracted text
AI analysis
- Analysis prompt
p2.py - Gemini model
- Structured analysis
p2.py
Other components
- Researcher
Connections 14
- Researcher → Streamlit interface: uploads document
p2.py - Streamlit interface → File type routing: checks extension
p2.py - File type routing → PDF extraction: routes PDF
p2.py - File type routing → Image OCR: routes image
p2.py - PDF extraction → pdfplumber: extracts pages
p2.py - Image OCR → Pillow image loading: opens image
p2.py - Image OCR → Tesseract OCR: runs OCR
p2.py - PDF extraction → Extracted text: returns text
p2.py - Image OCR → Extracted text: returns text
p2.py - Extracted text → Analysis prompt: supplies content
p2.py - Analysis prompt → Gemini model: requests analysis
p2.py - Gemini model → Structured analysis: returns response
p2.py - Structured analysis → Results display: renders Markdown
p2.py - Results display → Researcher: shows results
p2.py