abdulmatinomotoso
commited on
Commit
•
a8992e5
1
Parent(s):
2b4b768
Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ def get_adult_content(text):
|
|
25 |
adult_content = f"{labels[0]} : {round(probs[0]*100,2)} {labels[1]} : {round(probs[1]*100,2)}"
|
26 |
return adult_content
|
27 |
|
28 |
-
demo = gr.Interface(get_adult_content, inputs = gr.
|
29 |
-
outputs = gr.
|
30 |
|
31 |
|
32 |
if __name__ == "__main__":
|
|
|
25 |
adult_content = f"{labels[0]} : {round(probs[0]*100,2)} {labels[1]} : {round(probs[1]*100,2)}"
|
26 |
return adult_content
|
27 |
|
28 |
+
demo = gr.Interface(get_adult_content, inputs = gr.Textbox(label= "Input your text here"),
|
29 |
+
outputs = gr.Textbox(label='Category'))
|
30 |
|
31 |
|
32 |
if __name__ == "__main__":
|