Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def predict(user_input: str):
|
|
| 21 |
|
| 22 |
prediction = classifier(user_input)[0]
|
| 23 |
|
| 24 |
-
return f"Label: {prediction['label']}\
|
| 25 |
|
| 26 |
|
| 27 |
textbox = gr.Textbox(placeholder="Enter user input for injection attack classification", lines=12)
|
|
|
|
| 21 |
|
| 22 |
prediction = classifier(user_input)[0]
|
| 23 |
|
| 24 |
+
return f"Label: {prediction['label']}\nProbability: {round(prediction['score'], 3)}"
|
| 25 |
|
| 26 |
|
| 27 |
textbox = gr.Textbox(placeholder="Enter user input for injection attack classification", lines=12)
|