Spaces:
Configuration error
Configuration error
File size: 595 Bytes
c132e32 b4fcff9 d809aeb c132e32 b4fcff9 c132e32 5bcb90a c132e32 f06506b d809aeb f06506b bd75201 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import gradio as gr
from resources import register, tabularGradio
from example.examples import FSD, Pictionary
@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__":
# run single gradio
tabularGradio([Hello_World(), add()], ["Hello World", "Add"])
# run it within Gradio-Flow
# tabularGradio([Hello_World(), add()], ["Hello World", "Add"], listen=2000)
|