hkayesh commited on
Commit
8cc9f99
·
1 Parent(s): 4341dba

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ description = "Text classification using DistilBERT fine-tuned on the Kaggle disaster tweets dataset"
4
+ title = "Classify disaster-related tweets"
5
+ examples = [["Twelve feared killed in an air ambulance helicopter crash"]]
6
+
7
+ interface = gr.Interface.load("huggingface/hkayesh/twitter-disaster-nlp",
8
+ description=description,
9
+ examples=examples
10
+ )
11
+
12
+ interface.launch()