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