Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
#import os
|
| 2 |
-
#pip install --upgrade gradio
|
| 3 |
|
| 4 |
from pydantic import BaseModel, ConfigDict
|
| 5 |
import numpy as np
|
|
@@ -1278,11 +1277,12 @@ def create_interface():
|
|
| 1278 |
status_message = gr.Textbox(label="Estado del Procesamiento", interactive=False)
|
| 1279 |
|
| 1280 |
output_gallery = gr.Gallery(label="Resultados Gráficos", columns=[2,1], height='auto', object_fit="contain")
|
|
|
|
| 1281 |
output_table = gr.Dataframe(
|
| 1282 |
label="Tabla Comparativa de Modelos (Ordenada por R² Biomasa Descendente)",
|
| 1283 |
headers=["Experimento", "Modelo", "R² Biomasa", "RMSE Biomasa",
|
| 1284 |
-
|
| 1285 |
-
interactive=False, wrap=True
|
| 1286 |
)
|
| 1287 |
|
| 1288 |
state_df = gr.State(pd.DataFrame()) # To store the dataframe for export
|
|
|
|
| 1 |
#import os
|
|
|
|
| 2 |
|
| 3 |
from pydantic import BaseModel, ConfigDict
|
| 4 |
import numpy as np
|
|
|
|
| 1277 |
status_message = gr.Textbox(label="Estado del Procesamiento", interactive=False)
|
| 1278 |
|
| 1279 |
output_gallery = gr.Gallery(label="Resultados Gráficos", columns=[2,1], height='auto', object_fit="contain")
|
| 1280 |
+
# Change the gr.Dataframe initialization
|
| 1281 |
output_table = gr.Dataframe(
|
| 1282 |
label="Tabla Comparativa de Modelos (Ordenada por R² Biomasa Descendente)",
|
| 1283 |
headers=["Experimento", "Modelo", "R² Biomasa", "RMSE Biomasa",
|
| 1284 |
+
"R² Sustrato", "RMSE Sustrato", "R² Producto", "RMSE Producto"],
|
| 1285 |
+
interactive=False, wrap=True # Remove height=400
|
| 1286 |
)
|
| 1287 |
|
| 1288 |
state_df = gr.State(pd.DataFrame()) # To store the dataframe for export
|