Spaces:
Runtime error
Runtime error
Preetham04
commited on
Commit
•
f396334
1
Parent(s):
a1bae54
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
pipeline = pipeline(task="text-classification", model="Preetham04/sentiment-
|
5 |
|
6 |
def predict(input_text):
|
7 |
predictions = pipeline(input_text)
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
pipeline = pipeline(task="text-classification", model="Preetham04/sentiment-analysis_tf")
|
5 |
|
6 |
def predict(input_text):
|
7 |
predictions = pipeline(input_text)
|