sayakpaul's picture
sayakpaul HF staff
add: initial files.
66f8fc1
raw
history blame
234 Bytes
from fastapi import FastAPI
import gradio as gr
app = FastAPI()
def greet(name):
return "Hello " + name + "!"
@app.get("/")
def read_root():
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()