marcelcastrobr commited on
Commit
3657834
1 Parent(s): 2caf69a

update of application

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -26,5 +26,8 @@ iface = gr.Interface(
26
  gr.inputs.Textbox(lines=2,
27
  label="Possible candidate labels",
28
  placeholder="labels here...")],
29
- outputs="text")
 
 
 
30
  iface.launch()
 
26
  gr.inputs.Textbox(lines=2,
27
  label="Possible candidate labels",
28
  placeholder="labels here...")],
29
+ outputs=gr.outputs.Label(num_top_classes=3),
30
+ capture_session=True,
31
+ interpretation="default"
32
+ ,examples=[[("Folkehelseinstituttets mest optimistiske anslag er at alle voksne er ferdigvaksinert innen midten av september."), ("['politikk', 'helse', 'sport', 'religion']")])
33
  iface.launch()