Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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=
|
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"
|