Spaces:
Sleeping
Sleeping
Update app.py
Browse filesadded flagging and text boxes labels
app.py
CHANGED
@@ -28,13 +28,13 @@ markdown_text = """
|
|
28 |
- Accuracy of the model is ~72%.
|
29 |
"""
|
30 |
|
31 |
-
# Define the interface
|
32 |
iface = gr.Interface(
|
33 |
fn=predict,
|
34 |
-
inputs=gr.components.Textbox(lines=2, placeholder="Enter Budget line here..."),
|
35 |
-
outputs="
|
36 |
title="COFOG Level 1 Classification",
|
37 |
-
description=markdown_text
|
|
|
38 |
)
|
39 |
|
40 |
# Run the interface
|
|
|
28 |
- Accuracy of the model is ~72%.
|
29 |
"""
|
30 |
|
|
|
31 |
iface = gr.Interface(
|
32 |
fn=predict,
|
33 |
+
inputs=gr.components.Textbox(lines=2, placeholder="Enter Budget line here...", label="Budget Input"),
|
34 |
+
outputs=gr.components.Textbox(label="Classification Output"),
|
35 |
title="COFOG Level 1 Classification",
|
36 |
+
description=markdown_text,
|
37 |
+
enable_flagging="auto" # Enables flagging
|
38 |
)
|
39 |
|
40 |
# Run the interface
|