Spaces:
Build error
Build error
lyangas
commited on
Commit
·
3c7ab9e
1
Parent(s):
1bb21bd
rename titles
Browse files
app.py
CHANGED
@@ -19,5 +19,12 @@ def classify(text):
|
|
19 |
return output_text
|
20 |
|
21 |
print('INFO: starting gradio interface')
|
22 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
iface.launch()
|
|
|
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.inputs.Textbox(label="Input text")],
|
28 |
+
outputs=gr.outputs.Textbox(label="Result class"),
|
29 |
+
)
|
30 |
iface.launch()
|