Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .github/workflows/deploy-to-cloud-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,3 @@ jobs:
--platform managed \
--region us-central1 \
--allow-unauthenticated

- name: Notify Slack on failure
if: failure()
run: |
curl -X POST -H 'Content-type: application/json' \
--data '{"text": "Deployment failed for branch ${{ github.ref }}. Here are the details:\n\n Branch: ${{ github.ref }}\n Commit: ${{ github.sha }}\n Author: ${{ github.actor }}\n"}' \
${{ secrets.SLACK_WEBHOOK_URL }}
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

26 changes: 0 additions & 26 deletions UI/README.md

This file was deleted.

99 changes: 0 additions & 99 deletions UI/generate_patient_report_pdf.py

This file was deleted.

13 changes: 1 addition & 12 deletions UI/patient_form.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import streamlit as st
from generate_patient_report_pdf import create_pdf

st.title("Welcome to MedScript")
# Streamlit application
Expand Down Expand Up @@ -61,17 +60,7 @@

# Button to view diagnostic report
if st.button("View Diagnostic Report"):
try:
pdf = create_pdf()
st.download_button(
label="Download PDF",
data=pdf,
file_name="diagnostic_report.pdf",
mime="application/pdf"
)
except Exception as e:
print(f"An error occured: {e}")
# st.write("Diagnostic report is not yet available. Please contact your healthcare provider.")
st.write("Diagnostic report is not yet available. Please contact your healthcare provider.")

st.subheader("Diagnosis")
primary_diagnosis = st.text_area("Primary Diagnosis", placeholder="Enter the primary diagnosis...", height=150)
Expand Down
1 change: 0 additions & 1 deletion UI/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
fpdf=1.7.2
streamlit==1.24.0
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ filelock==3.16.1
Flask==2.2.5
flatten-dict==0.4.2
flufl.lock==8.1.0
fpdf==1.7.2
fonttools==4.54.1
frozenlist==1.5.0
fsspec==2024.9.0
Expand Down