Spaces:
Runtime error
Runtime error
Preetham04
commited on
Commit
•
c1f16b3
1
Parent(s):
fed422d
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)
|