Stanford-TH commited on
Commit
f709d81
·
verified ·
1 Parent(s): d337eef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,10 +1,9 @@
1
  import gradio as gr
2
  from EmotionClassifier.EmotionPredictor import EmotionPredictor
3
  from NER_Wrapper.NER_Wrapper import FullNERPipeline
4
- import warnings
5
  import pandas as pd
6
 
7
- warnings.filterwarnings('ignore')
8
 
9
  emotion_predictor,ner_pipe = EmotionPredictor(),FullNERPipeline()
10
 
@@ -15,7 +14,7 @@ def predict(description):
15
 
16
  iface = gr.Interface(
17
  fn=predict,
18
- inputs="textarea",
19
  outputs="dataframe",
20
  live=False,
21
  title="Emotion Prediction"
 
1
  import gradio as gr
2
  from EmotionClassifier.EmotionPredictor import EmotionPredictor
3
  from NER_Wrapper.NER_Wrapper import FullNERPipeline
4
+
5
  import pandas as pd
6
 
 
7
 
8
  emotion_predictor,ner_pipe = EmotionPredictor(),FullNERPipeline()
9
 
 
14
 
15
  iface = gr.Interface(
16
  fn=predict,
17
+ inputs=gr.Textarea(),
18
  outputs="dataframe",
19
  live=False,
20
  title="Emotion Prediction"