Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,22 +80,16 @@ def predict_codes(text):
|
|
80 |
# Create Gradio interface
|
81 |
iface = gr.Interface(
|
82 |
fn=predict_codes,
|
83 |
-
inputs=gr.Textbox(
|
84 |
-
|
85 |
-
placeholder="Enter medical summary here...",
|
86 |
-
label="Medical Summary"
|
87 |
-
),
|
88 |
-
outputs=gr.Textbox(
|
89 |
-
label="Predicted Codes",
|
90 |
-
lines=10
|
91 |
-
),
|
92 |
title="AutoRCM - Medical Code Predictor",
|
93 |
description="Enter a medical summary to get recommended ICD-10 and CPT codes.",
|
94 |
examples=[
|
95 |
["Patient presents with blood pressure 150/90. Complains of occasional headaches. History of hypertension."],
|
96 |
["Patient has elevated blood sugar levels. A1C is 7.8. History of type 2 diabetes."],
|
97 |
["Patient complains of chronic lower back pain, worse with movement. No radiation to legs."]
|
98 |
-
]
|
|
|
99 |
)
|
100 |
|
101 |
# Launch the interface
|
|
|
80 |
# Create Gradio interface
|
81 |
iface = gr.Interface(
|
82 |
fn=predict_codes,
|
83 |
+
inputs=gr.Textbox(lines=5, placeholder="Enter medical summary here...", label="Medical Summary"),
|
84 |
+
outputs=gr.Textbox(label="Predicted Codes", lines=10),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
title="AutoRCM - Medical Code Predictor",
|
86 |
description="Enter a medical summary to get recommended ICD-10 and CPT codes.",
|
87 |
examples=[
|
88 |
["Patient presents with blood pressure 150/90. Complains of occasional headaches. History of hypertension."],
|
89 |
["Patient has elevated blood sugar levels. A1C is 7.8. History of type 2 diabetes."],
|
90 |
["Patient complains of chronic lower back pain, worse with movement. No radiation to legs."]
|
91 |
+
],
|
92 |
+
allow_flagging="never" # Disable caching
|
93 |
)
|
94 |
|
95 |
# Launch the interface
|