File size: 395 Bytes
c132e32
b4fcff9
c132e32
b4fcff9
c132e32
 
 
5bcb90a
c132e32
 
 
 
5bcb90a
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr
from resources import register, tabularGradio

@register(["text"], ["text"], examples=[["Luca Vivona"]])
def Hello_World(name):
        return f"Hello {name}, and welcome to Gradio Flow 🤗" 

@register(["number", "number"], ["number"], examples=[[1,1]])
def add(x, y):
    return x + y

if __name__ == "__main__":
    tabularGradio([Hello_World(), add()], ["Hello World",])