pgurazada1
commited on
Commit
•
68b86c0
1
Parent(s):
b350c34
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def predict(user_input: str):
|
|
24 |
return f"Label: {prediction['label']}\nProbability: {round(prediction['score'], 3)}"
|
25 |
|
26 |
|
27 |
-
textbox = gr.Textbox(placeholder="Enter user input
|
28 |
|
29 |
interface = gr.Interface(
|
30 |
inputs=textbox, fn=predict, outputs="text",
|
|
|
24 |
return f"Label: {prediction['label']}\nProbability: {round(prediction['score'], 3)}"
|
25 |
|
26 |
|
27 |
+
textbox = gr.Textbox(placeholder="Enter user input to classify injection attacks", lines=12)
|
28 |
|
29 |
interface = gr.Interface(
|
30 |
inputs=textbox, fn=predict, outputs="text",
|