Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,18 +21,5 @@ def analyze_sentiment(text):
|
|
| 21 |
result = results['labels'][ind]
|
| 22 |
return encoder[result]
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
<br>
|
| 27 |
-
<p>Proyecto realizado por alumnos de UPN</p>
|
| 28 |
-
<br>
|
| 29 |
-
<p>--Sistemas Inteligentes y Machine Learning--</p>
|
| 30 |
-
"""
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
iface = gr.Interface(fn=analyze_sentiment,
|
| 34 |
-
title="Analisis de Sentimientos",
|
| 35 |
-
description = description,
|
| 36 |
-
inputs="text",
|
| 37 |
-
outputs="image"
|
| 38 |
-
iface.launch(share=True)
|
|
|
|
| 21 |
result = results['labels'][ind]
|
| 22 |
return encoder[result]
|
| 23 |
|
| 24 |
+
demo = gr.Interface(fn=analyze_sentiment, inputs="text", outputs="image", title="Sentiment Analysis")
|
| 25 |
+
demo.launch(share=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|