Spaces:
Sleeping
Sleeping
Commit
·
ea52805
1
Parent(s):
d761ac0
update
Browse files
app.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
-
import pandas as pd
|
| 4 |
|
| 5 |
# Load the spam classifier model
|
| 6 |
classifier = pipeline("text-classification", model="mrm8488/bert-tiny-finetuned-sms-spam-detection")
|
|
@@ -20,4 +19,4 @@ app = gr.Interface(
|
|
| 20 |
|
| 21 |
# Run the app
|
| 22 |
if __name__ == "__main__":
|
| 23 |
-
app.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
|
|
|
| 3 |
|
| 4 |
# Load the spam classifier model
|
| 5 |
classifier = pipeline("text-classification", model="mrm8488/bert-tiny-finetuned-sms-spam-detection")
|
|
|
|
| 19 |
|
| 20 |
# Run the app
|
| 21 |
if __name__ == "__main__":
|
| 22 |
+
app.launch()
|