Update UI.py
Browse files
UI.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
import gradio as gr
|
4 |
|
5 |
-
def create_interface():
|
6 |
with gr.Blocks() as demo:
|
7 |
gr.Markdown("# Aplicación de Modelado de Bioprocesos con Integración de Yi-Coder")
|
8 |
|
@@ -37,7 +37,7 @@ def create_interface():
|
|
37 |
value="" if i > 0 else "Parámetros"
|
38 |
)
|
39 |
bounds_input = gr.Textbox(
|
40 |
-
label=f"
|
41 |
placeholder="(inferior, superior) para cada parámetro",
|
42 |
lines=1
|
43 |
)
|
@@ -144,7 +144,6 @@ def create_interface():
|
|
144 |
product_eq_count
|
145 |
]
|
146 |
|
147 |
-
# At the point where you use process_and_plot:
|
148 |
simulate_btn.click(
|
149 |
fn=process_and_plot,
|
150 |
inputs=simulate_inputs,
|
|
|
2 |
|
3 |
import gradio as gr
|
4 |
|
5 |
+
def create_interface(process_and_plot):
|
6 |
with gr.Blocks() as demo:
|
7 |
gr.Markdown("# Aplicación de Modelado de Bioprocesos con Integración de Yi-Coder")
|
8 |
|
|
|
37 |
value="" if i > 0 else "Parámetros"
|
38 |
)
|
39 |
bounds_input = gr.Textbox(
|
40 |
+
label=f"Límites del Modelo {model_name} {i+1}",
|
41 |
placeholder="(inferior, superior) para cada parámetro",
|
42 |
lines=1
|
43 |
)
|
|
|
144 |
product_eq_count
|
145 |
]
|
146 |
|
|
|
147 |
simulate_btn.click(
|
148 |
fn=process_and_plot,
|
149 |
inputs=simulate_inputs,
|