Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
-
from fastai.vision.all import *
|
3 |
-
|
4 |
-
learn = load_learner("huggingface/zeroshot/twitter-financial-news-topic")
|
5 |
-
learn
|
6 |
|
|
|
|
|
7 |
categories = ('Car in good condition','Damaged Car')
|
8 |
|
9 |
def is_car(x) : return x[0].isupper()
|
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
2 |
|
3 |
+
dataset = load_dataset("zeroshot/twitter-financial-news-sentiment")
|
4 |
+
dataset
|
5 |
categories = ('Car in good condition','Damaged Car')
|
6 |
|
7 |
def is_car(x) : return x[0].isupper()
|