import gradio as gr | |
def chat(message): | |
return f"Hello, {message}" | |
# bind it to gradio | |
gr.Interface(fn = chat, | |
title = "Hello, Gradio!", | |
inputs = "text", | |
outputs = "text").launch() | |
import gradio as gr | |
def chat(message): | |
return f"Hello, {message}" | |
# bind it to gradio | |
gr.Interface(fn = chat, | |
title = "Hello, Gradio!", | |
inputs = "text", | |
outputs = "text").launch() | |