Skip to content

A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.

fix(medical_prescription_digitizer): remove unresolved merge conflict markers

Rudy Celekli46b9ee70427b
diff --git a/OCR/medical_prescription_digitizer/.env.example b/OCR/medical_prescription_digitizer/.env.example
index d17f3ad..a430094 100644
--- a/OCR/medical_prescription_digitizer/.env.example
+++ b/OCR/medical_prescription_digitizer/.env.example
@@ -1,5 +1,2 @@
-<<<<<<< HEAD
-=======
# Your Mistral API key. Get one for free at https://platform.mistral.ai
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a
MISTRAL_API_KEY=your_mistral_api_key_here
diff --git a/OCR/medical_prescription_digitizer/app.py b/OCR/medical_prescription_digitizer/app.py
index 3140bb1..d96cc39 100644
--- a/OCR/medical_prescription_digitizer/app.py
+++ b/OCR/medical_prescription_digitizer/app.py
@@ -1,7 +1,4 @@
-<<<<<<< HEAD
-=======
"""Streamlit app that extracts and validates structured prescription data from uploaded images using Mistral Large 3 and RxNorm."""
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a
import os
import io
@@ -47,23 +44,10 @@ st.caption("Upload a prescription image — handwritten or printed — to extrac
st.divider()
-<<<<<<< HEAD
-# ── Sidebar: API key ──────────────────────────────────────────────────────────
-with st.sidebar:
- st.header("⚙️ Configuration")
- api_key = st.text_input(
- "Mistral API Key",
- value=os.getenv("MISTRAL_API_KEY", ""),
- type="password",
- help="Your Mistral API key. Store it in .env as MISTRAL_API_KEY to avoid re-entering.",
- )
- st.markdown("---")
-=======
api_key = os.getenv("MISTRAL_API_KEY")
# ── Sidebar ───────────────────────────────────────────────────────────────────
with st.sidebar:
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a
st.markdown("**How it works**")
st.markdown(
"1. Upload a prescription image\n"
@@ -95,11 +79,7 @@ if uploaded_file:
st.subheader("Extraction & Validation")
if not api_key:
-<<<<<<< HEAD
- st.error("Please enter your Mistral API key in the sidebar to proceed.")
-=======
st.error("MISTRAL_API_KEY not found. Add it to your .env file and restart the app.")
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a
st.stop()
if st.button("🔍 Digitize Prescription", type="primary", use_container_width=True):