File size: 446 Bytes
6f39164 a3c3a53 6f39164 a3c3a53 6f39164 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
def my_module_function(data):
# Tu lógica de procesamiento aquí
return data
def launch_gradio_widget(module):
inputs = gr.Dataframe(headers=["Column1", "Column2"], datatype=["str", "int"])
outputs = gr.Dataframe(headers=["Column1", "Column2"], datatype=["str", "int"])
interface = gr.Interface(fn=module, inputs=inputs, outputs=outputs)
interface.launch()
launch_gradio_widget(my_module_function)
|