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