Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,17 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
3 |
description = "Text classification using DistilBERT fine-tuned on the Kaggle disaster tweets dataset"
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
6 |
|
7 |
interface = gr.Interface.load("huggingface/hkayesh/twitter-disaster-nlp",
|
8 |
description=description,
|
9 |
-
examples=examples
|
|
|
10 |
)
|
11 |
|
12 |
interface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
title = "Disaster tweets classification"
|
4 |
description = "Text classification using DistilBERT fine-tuned on the Kaggle disaster tweets dataset"
|
5 |
+
examples = [["Twelve feared killed in an air ambulance helicopter crash"],
|
6 |
+
["It's an apocalypse"],
|
7 |
+
["I love my new Tesla!"],
|
8 |
+
["Wow social media really blew up after the Adele concert"],
|
9 |
+
["Are you OK?"]]
|
10 |
|
11 |
interface = gr.Interface.load("huggingface/hkayesh/twitter-disaster-nlp",
|
12 |
description=description,
|
13 |
+
examples=examples,
|
14 |
+
theme="peach"
|
15 |
)
|
16 |
|
17 |
interface.launch()
|