File size: 697 Bytes
8cc9f99
 
d5e98e7
5e3abdf
8cc9f99
5e3abdf
d5e98e7
5e3abdf
d5e98e7
 
 
8cc9f99
 
091877f
8cc9f99
d5e98e7
02113c8
8cc9f99
 
02113c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gradio as gr

title = "Disaster tweets classification"

description = "Text classification using DistilBERT fine-tuned on the Kaggle disaster tweets dataset"

examples = [["Twelve feared killed in an air ambulance helicopter crash"], 
            ["Emergency services called after 'strong' chemical smells"], 
            ["I love my new Tesla!"], 
            ["Wow social media really blew up after the Adele concert"], 
            ["Are you OK?"]]

interface = gr.Interface.load("huggingface/hkayesh/twitter-disaster-nlp",
            title=title,
            description=description,
            examples=examples,
            theme="huggingface"
)

interface.launch(enable_queue=True)