Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
3 |
def greet(name):
|
4 |
-
|
|
|
|
|
|
|
|
|
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()
|