Spaces:
Running
Running
text-classification
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
pipeline = pipeline(task="
|
5 |
|
6 |
def predict(deepmoji_analysis):
|
7 |
predictions = pipeline(deepmoji_analysis)
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
pipeline = pipeline(task="text-classification", model="colinryan/hf-deepmoji")
|
5 |
|
6 |
def predict(deepmoji_analysis):
|
7 |
predictions = pipeline(deepmoji_analysis)
|