Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,13 @@
|
|
1 |
-
import
|
2 |
-
from evaluate.utils import launch_gradio_widget
|
3 |
|
|
|
|
|
|
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
|
|
2 |
|
3 |
+
def my_module_function(data):
|
4 |
+
# Tu lógica de procesamiento aquí
|
5 |
+
return data
|
6 |
|
7 |
+
def launch_gradio_widget(module):
|
8 |
+
inputs = gr.Dataframe(headers=["Column1", "Column2"], datatype=["str", "int"])
|
9 |
+
outputs = gr.Dataframe(headers=["Column1", "Column2"], datatype=["str", "int"])
|
10 |
+
interface = gr.Interface(fn=module, inputs=inputs, outputs=outputs)
|
11 |
+
interface.launch()
|
12 |
+
|
13 |
+
launch_gradio_widget(my_module_function)
|