kai47's picture
Creating app.py
b3275a6
raw
history blame
290 Bytes
import gradio
import diffuzers
diffuzers api --port 10000 & npx localtunnel --port 10000
def my_inference_function(name):
return "Hello " + name + "!"
gradio_interface = gradio.Interface(
fn = my_inference_function,
inputs = "text",
outputs = "text"
)
gradio_interface.launch()