Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -94,19 +94,18 @@ with gr.Blocks(css=".gradio-container { max-width: 900px; margin: auto; padding:
|
|
94 |
placeholder="Type your review here..."
|
95 |
)
|
96 |
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
|
|
|
|
|
|
101 |
|
|
|
102 |
with gr.Row():
|
103 |
-
|
104 |
-
|
105 |
-
lstm_output = gr.Textbox(label="Predicted Sentiment (LSTM Model)", interactive=False)
|
106 |
-
bilstm_output = gr.Textbox(label="Predicted Sentiment (BiLSTM Model)", interactive=False)
|
107 |
-
|
108 |
-
with gr.Column():
|
109 |
-
statistics_output = gr.Textbox(label="Statistics (Lowest, Highest, Average)", interactive=False)
|
110 |
|
111 |
# Button to analyze sentiment and show statistics
|
112 |
def process_input_and_analyze(text_input):
|
|
|
94 |
placeholder="Type your review here..."
|
95 |
)
|
96 |
|
97 |
+
with gr.Row():
|
98 |
+
gru_output = gr.Textbox(label="Predicted Sentiment (GRU Model)", interactive=False)
|
99 |
+
lstm_output = gr.Textbox(label="Predicted Sentiment (LSTM Model)", interactive=False)
|
100 |
+
bilstm_output = gr.Textbox(label="Predicted Sentiment (BiLSTM Model)", interactive=False)
|
101 |
+
|
102 |
+
with gr.Row():
|
103 |
+
statistics_output = gr.Textbox(label="Statistics (Lowest, Highest, Average)", interactive=False)
|
104 |
|
105 |
+
# Buttons placed together in a row
|
106 |
with gr.Row():
|
107 |
+
analyze_button = gr.Button("Analyze Sentiment", variant="primary") # Blue button
|
108 |
+
clear_button = gr.ClearButton([text_input, gru_output, lstm_output, bilstm_output, statistics_output]) # Clear button
|
|
|
|
|
|
|
|
|
|
|
109 |
|
110 |
# Button to analyze sentiment and show statistics
|
111 |
def process_input_and_analyze(text_input):
|