Spaces:
Build error
Build error
abhi12ravi
commited on
Commit
•
8cb193b
1
Parent(s):
98bbe69
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
def greet(name):
|
4 |
-
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
import gradiohelper
|
3 |
|
|
|
|
|
4 |
|
5 |
+
|
6 |
+
def predict_protection_level(title):
|
7 |
+
|
8 |
+
status = gradiohelper.predict_protection_level(title)
|
9 |
+
|
10 |
+
return status
|
11 |
+
|
12 |
+
iface = gr.Interface(fn=predict_protection_level, inputs="text", outputs="text")
|
13 |
iface.launch()
|