Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ model, tokenizer = load_model()
|
|
6 |
def classify(text):
|
7 |
return predict(text, model, tokenizer)
|
8 |
|
9 |
-
gr.Interface(
|
10 |
fn=classify,
|
11 |
inputs=gr.Textbox(lines=4, placeholder="Masukkan teks cyberbullying..."),
|
12 |
outputs=gr.Label(label="Prediksi Cyberbullying"),
|
@@ -17,4 +17,6 @@ gr.Interface(
|
|
17 |
["Kaum kalian harus dimusnahkan dari muka bumi."],
|
18 |
["Kamu terlalu kurus, kayak tengkorak jalan!"]
|
19 |
]
|
20 |
-
)
|
|
|
|
|
|
6 |
def classify(text):
|
7 |
return predict(text, model, tokenizer)
|
8 |
|
9 |
+
demo = gr.Interface(
|
10 |
fn=classify,
|
11 |
inputs=gr.Textbox(lines=4, placeholder="Masukkan teks cyberbullying..."),
|
12 |
outputs=gr.Label(label="Prediksi Cyberbullying"),
|
|
|
17 |
["Kaum kalian harus dimusnahkan dari muka bumi."],
|
18 |
["Kamu terlalu kurus, kayak tengkorak jalan!"]
|
19 |
]
|
20 |
+
)
|
21 |
+
|
22 |
+
demo.launch()
|