Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import os
|
|
3 |
import torch
|
4 |
from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification
|
5 |
import transformers
|
6 |
-
from transformers import pipeline
|
7 |
import gradio as gr
|
8 |
#from pysentimiento import create_analyzer
|
9 |
import pandas as pd
|
@@ -44,7 +43,7 @@ def clasificador(input1, input2):
|
|
44 |
#analyzer = create_analyzer(task="sentiment", lang="es")
|
45 |
#output2 = analyzer.predict(input1)
|
46 |
output2=classify_text(input1)
|
47 |
-
return output1
|
48 |
|
49 |
|
50 |
iface = gr.Interface(
|
|
|
3 |
import torch
|
4 |
from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification
|
5 |
import transformers
|
|
|
6 |
import gradio as gr
|
7 |
#from pysentimiento import create_analyzer
|
8 |
import pandas as pd
|
|
|
43 |
#analyzer = create_analyzer(task="sentiment", lang="es")
|
44 |
#output2 = analyzer.predict(input1)
|
45 |
output2=classify_text(input1)
|
46 |
+
return output1, output2
|
47 |
|
48 |
|
49 |
iface = gr.Interface(
|