ankush-003 commited on
Commit
a87481b
1 Parent(s): d74252c

using pipeline

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
  import json
3
- import tensorflow as tf
4
  # from transformers import AutoTokenizer
5
  # from transformers import TFAutoModelForSequenceClassification
6
 
@@ -36,7 +36,7 @@ input_elements = [gr.Textbox(label="Enter Username"), gr.Textbox(label="Enter Pa
36
 
37
  demo = gr.Interface(
38
  title="NoSQLi Detector",
39
- description="DistilBERT-based NoSQL Injection Payload Detection Model ",
40
  fn=predict,
41
  inputs=input_elements,
42
  outputs=[gr.Textbox(label="Generated Payload"), gr.Textbox(label="Model Prediction"), gr.Slider(0, 100, label="Score")]
 
1
  import gradio as gr
2
  import json
3
+ # import tensorflow as tf
4
  # from transformers import AutoTokenizer
5
  # from transformers import TFAutoModelForSequenceClassification
6
 
 
36
 
37
  demo = gr.Interface(
38
  title="NoSQLi Detector",
39
+ description="DistilBERT-based NoSQL Injection Payload Detection Model",
40
  fn=predict,
41
  inputs=input_elements,
42
  outputs=[gr.Textbox(label="Generated Payload"), gr.Textbox(label="Model Prediction"), gr.Slider(0, 100, label="Score")]