Spaces:
Build error
Build error
lyangas
commited on
Commit
·
28684eb
1
Parent(s):
3c7ab9e
add default text
Browse files
app.py
CHANGED
@@ -19,12 +19,13 @@ def classify(text):
|
|
19 |
return output_text
|
20 |
|
21 |
print('INFO: starting gradio interface')
|
|
|
22 |
iface = gr.Interface(
|
23 |
enable_queue=True,
|
24 |
title="ICD10-codes classification",
|
25 |
description="",
|
26 |
fn=classify,
|
27 |
-
inputs=[gr.
|
28 |
outputs=gr.outputs.Textbox(label="Result class"),
|
29 |
)
|
30 |
iface.launch()
|
|
|
19 |
return output_text
|
20 |
|
21 |
print('INFO: starting gradio interface')
|
22 |
+
default_input_text = """Microscopic Evaluation: The specimen is excised into the reticular dermis and demonstrates skin with prominent papillomatosis and hyperkeratosis. The keratinocytes show reactive changes with nuclear enlargement and increased amounts of cytoplasm but no dysplasia is identified. Lymphocytic inflammation is distributed through the base of the lesion. Some pigmentation is present. The lesion approximates the edges of the specimen but appears to be predominantly excised. (GMW/jc) Gross Description: Shave removal and destruction erythematous tender papule with hyperkeratotic scale SCC vs BCC D.. Right medial temple. Final Diagnosis: Pigmented seborrheic keratosis inflamed."""
|
23 |
iface = gr.Interface(
|
24 |
enable_queue=True,
|
25 |
title="ICD10-codes classification",
|
26 |
description="",
|
27 |
fn=classify,
|
28 |
+
inputs=[gr.Textbox(label="Input text", value=default_input_text)],
|
29 |
outputs=gr.outputs.Textbox(label="Result class"),
|
30 |
)
|
31 |
iface.launch()
|