Update app.py
Browse files
app.py
CHANGED
@@ -41,15 +41,11 @@ def gradio_interface(a, b, c):
|
|
41 |
demo = gr.Interface(
|
42 |
fn=gradio_interface,
|
43 |
inputs=[
|
44 |
-
gr.Number(label="Valor A",
|
45 |
-
gr.Number(label="Valor B",
|
46 |
-
gr.Number(label="Valor C",
|
47 |
],
|
48 |
-
outputs=gr.Image(label="Gráfico de
|
49 |
-
title="Generador de Gráficos de Barras",
|
50 |
-
description="Genera un gráfico de barras basado en los valores de A, B y C"
|
51 |
-
)
|
52 |
|
53 |
-
demo.launch(share=True)
|
54 |
|
55 |
|
|
|
41 |
demo = gr.Interface(
|
42 |
fn=gradio_interface,
|
43 |
inputs=[
|
44 |
+
gr.Number(label="Valor A", value=a),
|
45 |
+
gr.Number(label="Valor B", value=b),
|
46 |
+
gr.Number(label="Valor C", value=c)
|
47 |
],
|
48 |
+
outputs=gr.Image(label="Gráfico de
|
|
|
|
|
|
|
49 |
|
|
|
50 |
|
51 |
|