hf-pr-agent / app2.py
Gianpaolo Macario
fix: update project name in pyproject.toml to match repository
47058bf
raw
history blame contribute delete
362 Bytes
from fastapi import FastAPI
import gradio as gr
print("DEBUG: app2.py starting")
app = FastAPI()
@app.get("/")
def read_main():
return {"message": "This is your main app"}
io = gr.Interface(lambda x: "Hello, " + x + "!", "textbox", "textbox")
print(f"DEBUG: io={io}")
app = gr.mount_gradio_app(app, io, path="/gradio")
print(f"DEBUG: app={app}")
# EOF