LucaVivona's picture
backend fixed module bugs πŸ›
e629239
raw
history blame
355 Bytes
import sys
sys.path.insert(0, "../")
from src.resources import GradioModule, register
@register(["text"], ["text"], examples=[["Luca Vivona"]])
def Hello_World(name):
return f"πŸ‘‹ Hello {name}, and welcome to Gradio Flow πŸ€—"
@register(inputs=["number", "number"], ouputs=["number"], examples=[[1,1]])
def add(x, y):
return x + y