Upload app.py
Browse files
app.py
CHANGED
@@ -177,9 +177,6 @@ def launch_gradio_app(config):
|
|
177 |
integration_table = gr.Dataframe(value=load_scores(Infomration_Integration_DIR), interactive=False)
|
178 |
|
179 |
# Section to display logs
|
180 |
-
with gr.Row():
|
181 |
-
start_log_button = gr.Button("View logs", elem_id="start_btn", variant="primary", scale = 0) # Button remains but isn't required
|
182 |
-
|
183 |
with gr.Row():
|
184 |
log_section = gr.Textbox(label="Logs", interactive=False, visible=True, lines=10 , every=2) # Log section
|
185 |
|
@@ -189,9 +186,6 @@ def launch_gradio_app(config):
|
|
189 |
app.queue()
|
190 |
app.load(update_logs_periodically, outputs=log_section)
|
191 |
|
192 |
-
# Optional: Keep button for manual log refresh
|
193 |
-
start_log_button.click(fn=get_logs, outputs=log_section)
|
194 |
-
|
195 |
# Refresh Scores Function
|
196 |
def refresh_scores():
|
197 |
return load_scores(Noise_Robustness_DIR), load_negative_rejection_scores(), load_counterfactual_robustness_scores(), load_scores(Infomration_Integration_DIR)
|
|
|
177 |
integration_table = gr.Dataframe(value=load_scores(Infomration_Integration_DIR), interactive=False)
|
178 |
|
179 |
# Section to display logs
|
|
|
|
|
|
|
180 |
with gr.Row():
|
181 |
log_section = gr.Textbox(label="Logs", interactive=False, visible=True, lines=10 , every=2) # Log section
|
182 |
|
|
|
186 |
app.queue()
|
187 |
app.load(update_logs_periodically, outputs=log_section)
|
188 |
|
|
|
|
|
|
|
189 |
# Refresh Scores Function
|
190 |
def refresh_scores():
|
191 |
return load_scores(Noise_Robustness_DIR), load_negative_rejection_scores(), load_counterfactual_robustness_scores(), load_scores(Infomration_Integration_DIR)
|