Spaces:
Runtime error
Runtime error
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) | |