Pavan97 commited on
Commit
42e8643
·
1 Parent(s): c9dab85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -5,6 +5,8 @@ import gradio as gr
5
  from transformers import pipeline
6
 
7
  predict = pipeline("text-classification", model = "Pavan97/Emotion_Analysis" )
 
 
8
 
9
  iface = gr.Interface(fn = predict,
10
  inputs = "text",
 
5
  from transformers import pipeline
6
 
7
  predict = pipeline("text-classification", model = "Pavan97/Emotion_Analysis" )
8
+ def predict(input_text):
9
+ return predict(input_text)
10
 
11
  iface = gr.Interface(fn = predict,
12
  inputs = "text",