Spaces:
Sleeping
Sleeping
File size: 264 Bytes
155b533 |
1 2 3 4 5 6 7 8 |
from fastapi import FastAPI
import gradio as gr
app = FastAPI()
@app.get("/")
def read_main():
return {"message": "This is your main app"}
io = gr.Interface(lambda x: "Hello, " + x + "!", "textbox", "textbox")
app = gr.mount_gradio_app(app, io, path="/gradio") |