peterkros commited on
Commit
35749ea
·
1 Parent(s): e22b7cf

Update app.py

Browse files

added flagging and text boxes labels

Files changed (1) hide show
  1. app.py +4 -4
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="text",
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