zionia commited on
Commit
4ecebd0
1 Parent(s): 4c9facd

update gradio components used

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -42,10 +42,11 @@ gradio_ui = gr.Interface(
42
  ["Mo kgweding e e fetileng, dipuisano tsa ditheko tsa dijalo di ile tsa tswelela, ka batho ba rekang le barui ba ba ruileng."],
43
  ["Masole a Aforika Borwa a ne a ya kwa Mozambique go tlisetsa motlakase morago ga maduo a kgatlha."],
44
  ],
45
- inputs=gr.inputs.Textbox(lines=10, label="Paste some Setswana news here"),
46
- outputs=gr.outputs.Label(num_top_classes=5, type="auto", label="News categories probabilities"),
47
  theme="huggingface",
48
  article="<p style='text-align: center'>For our other AI works: <a href='https://www.kodiks.com/ai_solutions.html' target='_blank'>https://www.kodiks.com/ai_solutions.html</a> | <a href='https://twitter.com/KodiksBilisim' target='_blank'>Contact us</a></p>",
49
  )
50
 
51
  gradio_ui.launch()
 
 
42
  ["Mo kgweding e e fetileng, dipuisano tsa ditheko tsa dijalo di ile tsa tswelela, ka batho ba rekang le barui ba ba ruileng."],
43
  ["Masole a Aforika Borwa a ne a ya kwa Mozambique go tlisetsa motlakase morago ga maduo a kgatlha."],
44
  ],
45
+ inputs=gr.Textbox(lines=10, label="Paste some Setswana news here"),
46
+ outputs=gr.Label(num_top_classes=5, label="News categories probabilities"),
47
  theme="huggingface",
48
  article="<p style='text-align: center'>For our other AI works: <a href='https://www.kodiks.com/ai_solutions.html' target='_blank'>https://www.kodiks.com/ai_solutions.html</a> | <a href='https://twitter.com/KodiksBilisim' target='_blank'>Contact us</a></p>",
49
  )
50
 
51
  gradio_ui.launch()
52
+