Spaces:
Build error
Build error
Update app.py
Browse filesAdjust model name to add excode
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
classifier = pipeline("text-classification", model="distilbert-amazon-shoe-reviews_ubuntu")
|
5 |
|
6 |
def predict(review):
|
7 |
prediction = classifier(review)
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
classifier = pipeline("text-classification", model="excode/distilbert-amazon-shoe-reviews_ubuntu")
|
5 |
|
6 |
def predict(review):
|
7 |
prediction = classifier(review)
|