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",
|