Mrhuman1 commited on
Commit
cee555d
·
verified ·
1 Parent(s): 2f96bed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from PIL import Image
7
  from fpdf import FPDF
8
  import os
9
  from datetime import datetime
10
-
11
  # Define HardSwish activation
12
  class HardSwish(nn.Module):
13
  def __init__(self):
@@ -152,7 +152,7 @@ with gr.Blocks(theme="default") as demo:
152
  with gr.Column():
153
  image_input = gr.Image(type="pil", label="Upload Chest X-ray Image")
154
  name_input = gr.Textbox(label="Patient Name")
155
- date_input = gr.Date(label="Date of X-ray")
156
  submit_button = gr.Button("Analyze & Generate PDF Report")
157
  with gr.Column():
158
  file_output = gr.File(label="Download Generated Report (PDF)")
 
7
  from fpdf import FPDF
8
  import os
9
  from datetime import datetime
10
+ print("This app is not accurate , use with caution, images uploaded with bad pixels may effect the result")
11
  # Define HardSwish activation
12
  class HardSwish(nn.Module):
13
  def __init__(self):
 
152
  with gr.Column():
153
  image_input = gr.Image(type="pil", label="Upload Chest X-ray Image")
154
  name_input = gr.Textbox(label="Patient Name")
155
+ date_input = gr.Textbox(label="Date of X-ray (YYYY-MM-DD)", placeholder="e.g. 2025-04-27")
156
  submit_button = gr.Button("Analyze & Generate PDF Report")
157
  with gr.Column():
158
  file_output = gr.File(label="Download Generated Report (PDF)")