abdulmatinomotoso commited on
Commit
871c34a
1 Parent(s): eb10631

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,9 +21,9 @@ def get_adult_content(text):
21
  probs = probs.cpu().detach().numpy()
22
 
23
  #max_index = np.argmax(probs)
24
-
25
- return adult_content
26
  adult_content = f"{labels[0]} : {round(probs[0]*100,2)} {labels[1]} : {round(probs[1]*100,2)}"
 
 
27
  demo = gr.Interface(get_adult_content, inputs = gr.inputs.Textbox(label= "Input your text here"),
28
  outputs = gr.outputs.Textbox(label='Category'))
29
 
 
21
  probs = probs.cpu().detach().numpy()
22
 
23
  #max_index = np.argmax(probs)
 
 
24
  adult_content = f"{labels[0]} : {round(probs[0]*100,2)} {labels[1]} : {round(probs[1]*100,2)}"
25
+ return adult_content
26
+
27
  demo = gr.Interface(get_adult_content, inputs = gr.inputs.Textbox(label= "Input your text here"),
28
  outputs = gr.outputs.Textbox(label='Category'))
29