Spaces:
Runtime error
Runtime error
Create app.py
Browse files
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()
|