Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import gradio as gr
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
import io
|
| 5 |
import base64
|
|
@@ -42,9 +41,9 @@ def gradio_interface(a, b, c):
|
|
| 42 |
demo = gr.Interface(
|
| 43 |
fn=gradio_interface,
|
| 44 |
inputs=[
|
| 45 |
-
gr.Number(
|
| 46 |
-
gr.Number(
|
| 47 |
-
gr.Number(
|
| 48 |
],
|
| 49 |
outputs=gr.Image(label="Gráfico de Barras"),
|
| 50 |
title="Generador de Gráficos de Barras",
|
|
@@ -53,3 +52,4 @@ demo = gr.Interface(
|
|
| 53 |
|
| 54 |
demo.launch(share=True)
|
| 55 |
|
|
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
import matplotlib.pyplot as plt
|
| 3 |
import io
|
| 4 |
import base64
|
|
|
|
| 41 |
demo = gr.Interface(
|
| 42 |
fn=gradio_interface,
|
| 43 |
inputs=[
|
| 44 |
+
gr.Number(label="Valor A", default=a),
|
| 45 |
+
gr.Number(label="Valor B", default=b),
|
| 46 |
+
gr.Number(label="Valor C", default=c)
|
| 47 |
],
|
| 48 |
outputs=gr.Image(label="Gráfico de Barras"),
|
| 49 |
title="Generador de Gráficos de Barras",
|
|
|
|
| 52 |
|
| 53 |
demo.launch(share=True)
|
| 54 |
|
| 55 |
+
|