arjahojnik commited on
Commit
26ab425
·
verified ·
1 Parent(s): fdc4292

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -11
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
- # Buttons placed together in a row
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
  with gr.Row():
103
- with gr.Column():
104
- gru_output = gr.Textbox(label="Predicted Sentiment (GRU Model)", interactive=False)
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):