Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,9 +79,11 @@ def fn(test_review):
|
|
79 |
return "Positive" if predictions==1 else "Negative"
|
80 |
|
81 |
description = "Give a review of a movie that you like(or hate, sarcasm intended XD) and the model will let you know just how much your review truely reflects your emotions. "
|
|
|
|
|
82 |
here = gr.Interface(fn,
|
83 |
-
inputs=
|
84 |
-
outputs=
|
85 |
title="Sentiment analysis of movie reviews",
|
86 |
description=description,
|
87 |
theme="peach",
|
|
|
79 |
return "Positive" if predictions==1 else "Negative"
|
80 |
|
81 |
description = "Give a review of a movie that you like(or hate, sarcasm intended XD) and the model will let you know just how much your review truely reflects your emotions. "
|
82 |
+
input_text = gr.Textbox(label="Enter Text")
|
83 |
+
output_text = gr.Textbox(label="Output Text")
|
84 |
here = gr.Interface(fn,
|
85 |
+
inputs= input_text,
|
86 |
+
outputs=output_text,
|
87 |
title="Sentiment analysis of movie reviews",
|
88 |
description=description,
|
89 |
theme="peach",
|