CatoEr commited on
Commit
3019ade
1 Parent(s): 3aa75e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,7 +1,12 @@
1
  import gradio as gr
2
 
 
3
  def greet(name):
4
- return name
 
 
 
 
5
 
6
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  demo.launch()
 
1
  import gradio as gr
2
 
3
+
4
  def greet(name):
5
+ result = "Label Probabilities:\n" + "afr_amr: 0.797795832157135\n" + "asian: 0.17413224279880524\n"+ "latin: 0.013226916082203388\n"+ "white: 0.014844958670437336"
6
+
7
+ return result
8
+
9
+
10
 
11
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
12
  demo.launch()