File size: 301 Bytes
f747dc5
 
 
7f7b773
f747dc5
9abaf0d
d4bde9f
9abaf0d
 
d4bde9f
9abaf0d
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr

def greet(name):
    return "Hello " + name + "! aaaaaaaa !"

def echo(message, history):
    return "Si"

app = gr.Interface(fn=greet, inputs="text", outputs="text")
app = gr.ChatInterface(fn=echo, examples=["hello", "hola", "merhaba"], title="Truth bot")
app.launch(share=True)