Spaces:
Runtime error
Runtime error
from fastapi import FastAPI | |
import gradio as gr | |
app = FastAPI() | |
def greet(name): | |
return "Hello " + name + "!" | |
def read_root(): | |
demo = gr.Interface(fn=greet, inputs="text", outputs="text") | |
demo.launch() | |