Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
|
3 |
|
4 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
5 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
6 |
|
7 |
def greet(text):
|
8 |
pipe = pipeline("sentiment-analysis", tokenizer=tokenizer, model=model)
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
|
3 |
|
4 |
+
model = AutoModelForSequenceClassification.from_pretrained("MrHup/coloring-book")
|
5 |
+
tokenizer = AutoTokenizer.from_pretrained("MrHup/coloring-book")
|
6 |
|
7 |
def greet(text):
|
8 |
pipe = pipeline("sentiment-analysis", tokenizer=tokenizer, model=model)
|