FikriRiyadi commited on
Commit
22c8df9
·
verified ·
1 Parent(s): f7947a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- ).launch()
 
 
 
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()