File size: 443 Bytes
c132e32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86be414
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from resources import GradioModule, register
import gradio as gr

@GradioModule
class Greeting:

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

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


if __name__ == "__main__":
    print(Hello_World("Luca"))
    
    # Greeting().run(listen=2000)