Upload app.py
Browse files
app.py
CHANGED
@@ -13,8 +13,7 @@ def make_prediction(user_sentence):
|
|
13 |
|
14 |
title = "Sentiment Analysis MyAnimeList Reviews with fastai"
|
15 |
description = "<p style='text-align: center'>Identifier si un commentaire dans MyAnimeList est positif, neutre ou négatif.<br/> Permet de connaître rapidement le sentiment globale que dégage un avis sur le site.</p>"
|
16 |
-
examples = ["I liked this show but now I do not love this since the last season. The animation is terrible and the drawings are awful. I don't recommend this show to anyone.", "This is amazing !"]
|
17 |
|
18 |
-
app = gr.Interface(fn=make_prediction, title=title, description=description,
|
19 |
|
20 |
app.launch()
|
|
|
13 |
|
14 |
title = "Sentiment Analysis MyAnimeList Reviews with fastai"
|
15 |
description = "<p style='text-align: center'>Identifier si un commentaire dans MyAnimeList est positif, neutre ou négatif.<br/> Permet de connaître rapidement le sentiment globale que dégage un avis sur le site.</p>"
|
|
|
16 |
|
17 |
+
app = gr.Interface(fn=make_prediction, title=title, description=description, inputs=gr.TextArea(), outputs='text')
|
18 |
|
19 |
app.launch()
|